diff --git a/README.md b/README.md index d99b196..24f204f 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ -> [!IMPORTANT] +> [!IMPORTANT] > (2025-02-14) [zakkarry](https://github.com/sponsors/zakkarry), who is a collaborator on [cross-seed](https://github.com/cross-seed/cross-seed) and an extremely helpful community member in general, is facing hard times due to medical debt and family illness. If you're able, please consider [sponsoring him on GitHub](https://github.com/sponsors/zakkarry) or donating via [buymeacoffee](https://tip.ary.dev). Tell him I sent you! -

- + Pinchflat Logo by @hernandito

-

+

logo by @hernandito @@ -88,7 +88,7 @@ Simply search for Pinchflat in the Community Apps store! ### Portainer -> [!IMPORTANT] +> [!IMPORTANT] > See the note below about storing config on a network file share. It's preferred to store the config on a local disk if at all possible. Docker Compose file: @@ -178,6 +178,9 @@ If you change this setting and it works well for you, please leave a comment on | `BASE_ROUTE_PATH` | No | `/` | The base path for route generation. Useful when running behind certain reverse proxies - prefixes must be stripped. | | `YT_DLP_WORKER_CONCURRENCY` | No | `2` | The number of concurrent workers that use `yt-dlp` _per queue_. Set to 1 if you're getting IP limited, otherwise don't touch it | | `ENABLE_PROMETHEUS` | No | `false` | Setting to _any_ non-blank value will enable Prometheus. See [docs](https://github.com/kieraneglin/pinchflat/wiki/Prometheus-and-Grafana) | +| `PAGINATION_LIMIT` | No | `10` | How many items are displayed on a media item source | +| `PAGINATION_HISTORY_LIMIT` | No | `PAGINATION_LIMIT` or `5` | How many items are displayed on home's media history | + ### Reverse Proxies diff --git a/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex b/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex index 6c104aa..165e6d8 100644 --- a/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex +++ b/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex @@ -6,7 +6,7 @@ defmodule Pinchflat.Pages.HistoryTableLive do alias Pinchflat.Utils.NumberUtils alias PinchflatWeb.CustomComponents.TextComponents - @limit 5 + @limit System.get_env("PAGINATION_HISTORY_LIMIT", System.get_env("PAGINATION_LIMIT", "5")) |> String.to_integer() def render(%{records: []} = assigns) do ~H""" diff --git a/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex b/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex index de4c7ab..19f29ab 100644 --- a/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex +++ b/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex @@ -6,7 +6,7 @@ defmodule PinchflatWeb.Sources.MediaItemTableLive do alias Pinchflat.Sources alias Pinchflat.Utils.NumberUtils - @limit 10 + @limit System.get_env("PAGINATION_LIMIT", "10") |> String.to_integer() def render(%{total_record_count: 0} = assigns) do ~H"""