diff options
author | Astound <kirito@disroot.org> | 2025-02-28 10:51:51 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2025-02-28 10:51:51 +0800 |
commit | 630e0137e02b20ec0b0b796a688ede4daf486897 (patch) | |
tree | d0937cf75264847f99396056be35a318110a5944 | |
parent | a0c51731af8cad618a243a6ff3934c83b0d84e6e (diff) | |
download | yt-local-630e0137e02b20ec0b0b796a688ede4daf486897.tar.lz yt-local-630e0137e02b20ec0b0b796a688ede4daf486897.tar.xz yt-local-630e0137e02b20ec0b0b796a688ede4daf486897.zip |
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
-rw-r--r-- | youtube/playlist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/playlist.py b/youtube/playlist.py index 83d530c..28b8149 100644 --- a/youtube/playlist.py +++ b/youtube/playlist.py @@ -115,7 +115,7 @@ def get_playlist_page(): video_count = yt_data_extract.deep_get(info, 'metadata', 'video_count') if video_count is None: - video_count = 40 + video_count = 1000 return flask.render_template( 'playlist.html', |