Increase playlist count to 1000 by default if cannot get video count

This way, buttons will still appear even if there is a failure
to read playlist metadata

Fixes #220# Please enter the commit message for your changes. Lines starting
This commit is contained in:
Astound 2025-02-28 10:51:51 +08:00
parent a0c51731af
commit 630e0137e0
Signed by: kaiser
GPG Key ID: 97504AF0027B1A56

View File

@ -115,7 +115,7 @@ def get_playlist_page():
video_count = yt_data_extract.deep_get(info, 'metadata', 'video_count') video_count = yt_data_extract.deep_get(info, 'metadata', 'video_count')
if video_count is None: if video_count is None:
video_count = 40 video_count = 1000
return flask.render_template( return flask.render_template(
'playlist.html', 'playlist.html',