disable shorts or streams for channels, #405
This commit is contained in:
parent
c75ef72e74
commit
4d65d45a59
|
@ -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.
|
- **Page Size**: Defines how many results get displayed on a given page. Same value goes for all archive views.
|
||||||
|
|
||||||
## Subscriptions
|
## 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.
|
- **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.
|
- **Live Page Size**: Same as above, but for channel live streams.
|
||||||
- **Shorts page Size**: Same as above, but for shorts videos.
|
- **Shorts page Size**: Same as above, but for shorts videos.
|
||||||
|
|
|
@ -85,6 +85,10 @@ class ChannelSubscription:
|
||||||
return queries
|
return queries
|
||||||
|
|
||||||
for query_item, default_limit in limit_map.items():
|
for query_item, default_limit in limit_map.items():
|
||||||
|
if not default_limit:
|
||||||
|
# is deactivated in config
|
||||||
|
continue
|
||||||
|
|
||||||
if limit:
|
if limit:
|
||||||
query_limit = default_limit
|
query_limit = default_limit
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="settings-group">
|
<div class="settings-group">
|
||||||
<h2 id="subscriptions">Subscriptions</h2>
|
<h2 id="subscriptions">Subscriptions</h2>
|
||||||
|
<p>Disable shorts or streams by setting their page size to 0 (zero).</p>
|
||||||
<div class="settings-item">
|
<div class="settings-item">
|
||||||
<p>YouTube page size: <span class="settings-current">{{ config.subscriptions.channel_size }}</span></p>
|
<p>YouTube page size: <span class="settings-current">{{ config.subscriptions.channel_size }}</span></p>
|
||||||
<i>Videos to scan to find new items for the <b>Rescan subscriptions</b> task, max recommended 50.</i><br>
|
<i>Videos to scan to find new items for the <b>Rescan subscriptions</b> task, max recommended 50.</i><br>
|
||||||
|
@ -40,12 +41,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-item">
|
<div class="settings-item">
|
||||||
<p>YouTube Live page size: <span class="settings-current">{{ config.subscriptions.live_channel_size }}</span></p>
|
<p>YouTube Live page size: <span class="settings-current">{{ config.subscriptions.live_channel_size }}</span></p>
|
||||||
<i>Live Videos to scan to find new items for the <b>Rescan subscriptions</b> task, max recommended 50, 0 to disable.</i><br>
|
<i>Live Videos to scan to find new items for the <b>Rescan subscriptions</b> task, max recommended 50.</i><br>
|
||||||
{{ app_form.subscriptions_live_channel_size }}
|
{{ app_form.subscriptions_live_channel_size }}
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-item">
|
<div class="settings-item">
|
||||||
<p>YouTube Shorts page size: <span class="settings-current">{{ config.subscriptions.shorts_channel_size }}</span></p>
|
<p>YouTube Shorts page size: <span class="settings-current">{{ config.subscriptions.shorts_channel_size }}</span></p>
|
||||||
<i>Shorts Videos to scan to find new items for the <b>Rescan subscriptions</b> task, max recommended 50, 0 to disable.</i><br>
|
<i>Shorts Videos to scan to find new items for the <b>Rescan subscriptions</b> task, max recommended 50.</i><br>
|
||||||
{{ app_form.subscriptions_shorts_channel_size }}
|
{{ app_form.subscriptions_shorts_channel_size }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue