diff --git a/docs/Settings.md b/docs/Settings.md index e73498e..2ec38c4 100644 --- a/docs/Settings.md +++ b/docs/Settings.md @@ -10,7 +10,7 @@ Switch between the easy on the eyes dark theme and the burning bright theme. - **Page Size**: Defines how many results get displayed on a given page. Same value goes for all archive views. ## Subscriptions -Settings related to the channel management. +Settings related to the channel management. Disable shorts or streams by setting their page size to 0 (zero). - **Channel Page Size**: Defines how many pages will get analyzed by **Tube Archivist** each time you click on *Rescan Subscriptions*. The default page size used by yt-dlp is **50**, that's also the recommended value to set here. Any value higher will slow down the rescan process, for example if you set the value to 51, that means yt-dlp will have to go through 2 pages of results instead of 1 and by that doubling the time that process takes. - **Live Page Size**: Same as above, but for channel live streams. - **Shorts page Size**: Same as above, but for shorts videos. diff --git a/tubearchivist/home/src/download/subscriptions.py b/tubearchivist/home/src/download/subscriptions.py index f154b49..67818b8 100644 --- a/tubearchivist/home/src/download/subscriptions.py +++ b/tubearchivist/home/src/download/subscriptions.py @@ -85,6 +85,10 @@ class ChannelSubscription: return queries for query_item, default_limit in limit_map.items(): + if not default_limit: + # is deactivated in config + continue + if limit: query_limit = default_limit else: diff --git a/tubearchivist/home/templates/home/settings.html b/tubearchivist/home/templates/home/settings.html index 0260749..ec3d4c9 100644 --- a/tubearchivist/home/templates/home/settings.html +++ b/tubearchivist/home/templates/home/settings.html @@ -33,6 +33,7 @@ {% csrf_token %}

Subscriptions

+

Disable shorts or streams by setting their page size to 0 (zero).

YouTube page size: {{ config.subscriptions.channel_size }}

Videos to scan to find new items for the Rescan subscriptions task, max recommended 50.
@@ -40,12 +41,12 @@

YouTube Live page size: {{ config.subscriptions.live_channel_size }}

- Live Videos to scan to find new items for the Rescan subscriptions task, max recommended 50, 0 to disable.
+ Live Videos to scan to find new items for the Rescan subscriptions task, max recommended 50.
{{ app_form.subscriptions_live_channel_size }}

YouTube Shorts page size: {{ config.subscriptions.shorts_channel_size }}

- Shorts Videos to scan to find new items for the Rescan subscriptions task, max recommended 50, 0 to disable.
+ Shorts Videos to scan to find new items for the Rescan subscriptions task, max recommended 50.
{{ app_form.subscriptions_shorts_channel_size }}