mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-17 21:25:49 +00:00
Fix startup and channel page, #build
Changed: - Fixed startup schedule builder for new installations - Fixed shorts and streams page sizes set to 0
This commit is contained in:
commit
afa865edb1
@ -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.
|
||||||
|
@ -262,4 +262,4 @@ CORS_ALLOW_HEADERS = list(default_headers) + [
|
|||||||
|
|
||||||
# TA application settings
|
# TA application settings
|
||||||
TA_UPSTREAM = "https://github.com/tubearchivist/tubearchivist"
|
TA_UPSTREAM = "https://github.com/tubearchivist/tubearchivist"
|
||||||
TA_VERSION = "v0.3.1"
|
TA_VERSION = "v0.3.2-unstable"
|
||||||
|
@ -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:
|
||||||
|
@ -135,6 +135,7 @@ class AppConfig:
|
|||||||
# check for customizations
|
# check for customizations
|
||||||
if not redis_config:
|
if not redis_config:
|
||||||
config = self.get_config()
|
config = self.get_config()
|
||||||
|
config["scheduler"]["version_check"] = self._build_rand_daily()
|
||||||
RedisArchivist().set_message("config", config)
|
RedisArchivist().set_message("config", config)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -301,7 +301,7 @@ def index_channel_playlists(channel_id):
|
|||||||
"status": key,
|
"status": key,
|
||||||
"level": "info",
|
"level": "info",
|
||||||
"title": "Looking for playlists",
|
"title": "Looking for playlists",
|
||||||
"message": f'Scanning channel "{channel.youtube_id}" in progress',
|
"message": f"{channel_id}: Channel scan in progress",
|
||||||
}
|
}
|
||||||
RedisArchivist().set_message(key, mess_dict, expire=True)
|
RedisArchivist().set_message(key, mess_dict, expire=True)
|
||||||
channel.index_channel_playlists()
|
channel.index_channel_playlists()
|
||||||
@ -313,9 +313,6 @@ def version_check():
|
|||||||
ReleaseVersion().check()
|
ReleaseVersion().check()
|
||||||
|
|
||||||
|
|
||||||
try:
|
# load new defaults then start the schedule here
|
||||||
app.conf.beat_schedule = ScheduleBuilder().build_schedule()
|
|
||||||
except KeyError:
|
|
||||||
# update path to load new defaults
|
|
||||||
StartupCheck().sync_redis_state()
|
StartupCheck().sync_redis_state()
|
||||||
app.conf.beat_schedule = ScheduleBuilder().build_schedule()
|
app.conf.beat_schedule = ScheduleBuilder().build_schedule()
|
||||||
|
@ -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
Block a user