From 630e0137e02b20ec0b0b796a688ede4daf486897 Mon Sep 17 00:00:00 2001 From: Astound Date: Fri, 28 Feb 2025 10:51:51 +0800 Subject: 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 --- youtube/playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- cgit v1.2.3