aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/common_elements.html
diff options
context:
space:
mode:
authorAstounds <kirito@disroot.org>2026-03-31 21:38:51 -0500
committerAstounds <kirito@disroot.org>2026-03-31 21:38:51 -0500
commit06051dd127fd9805442ee10b569f36a611dbbc8e (patch)
treeaf6c8c40fb4189d7ef4748a1b47b14959cc7def1 /youtube/templates/common_elements.html
parent7c64630be1fd781f5964799da04d43cf191c61c3 (diff)
downloadyt-local-06051dd127fd9805442ee10b569f36a611dbbc8e.tar.lz
yt-local-06051dd127fd9805442ee10b569f36a611dbbc8e.tar.xz
yt-local-06051dd127fd9805442ee10b569f36a611dbbc8e.zip
fix: support YouTube 2024+ data formats for playlists, podcasts and channels
- Add PODCAST content type support in lockupViewModel extraction - Extract thumbnails and episode count from thumbnail overlay badges - Migrate playlist page fetching from pbj=1 to innertube API (youtubei/v1/browse) - Support new pageHeaderRenderer format in playlist metadata extraction - Fix subscriber count extraction when YouTube returns handle instead of count - Hide "None subscribers" in template when data is unavailable
Diffstat (limited to 'youtube/templates/common_elements.html')
-rw-r--r--youtube/templates/common_elements.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube/templates/common_elements.html b/youtube/templates/common_elements.html
index 5b72063..1b4b08c 100644
--- a/youtube/templates/common_elements.html
+++ b/youtube/templates/common_elements.html
@@ -58,7 +58,9 @@
<div class="stats {{'horizontal-stats' if horizontal else 'vertical-stats'}}">
{% if info['type'] == 'channel' %}
- <div>{{ info['approx_subscriber_count'] }} subscribers</div>
+ {% if info.get('approx_subscriber_count') %}
+ <div>{{ info['approx_subscriber_count'] }} subscribers</div>
+ {% endif %}
<div>{{ info['video_count']|commatize }} videos</div>
{% else %}
{% if info.get('time_published') %}