From 05ea84790d9f30c1feb3fd5f118ebc1bf1577934 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 22 Apr 2023 17:13:22 +0000 Subject: [PATCH] browse: implement channel livesteams subpage --- app/browse/templates/channel.html.j2 | 3 ++- app/common/innertube.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/browse/templates/channel.html.j2 b/app/browse/templates/channel.html.j2 index b6bb28d..35aec85 100644 --- a/app/browse/templates/channel.html.j2 +++ b/app/browse/templates/channel.html.j2 @@ -18,6 +18,7 @@
videos | + livestreams | playlists |
@@ -26,7 +27,7 @@
{% if subpage != "search" %}
- {% if subpage == "videos" %} + {% if subpage in ("videos", "streams") %} newest first | most popular {% elif subpage == "playlists" %} diff --git a/app/common/innertube.py b/app/common/innertube.py index 3859b02..7bfb48d 100644 --- a/app/common/innertube.py +++ b/app/common/innertube.py @@ -261,6 +261,8 @@ def parse_result_items(items): 'type': content['icon']['iconType'], 'message': content['title']|G.text, }) + elif key == 'continuationItemRenderer': # handled in parent function + pass else: log_unknown_card(item) return results, extras -- 2.39.3