aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/channel.html
diff options
context:
space:
mode:
authorJesus E <heckyel@riseup.net>2023-06-17 16:05:40 -0400
committerJesus E <heckyel@riseup.net>2023-06-17 16:05:40 -0400
commitf322035d4ac6aa17386ac9dd05f9c7a8d6720e99 (patch)
tree865c9ad567525b1d0d5d912a7e2e92b33ee90378 /youtube/templates/channel.html
parent74907a81835435f881424b41729cc71cb9d50056 (diff)
downloadyt-local-f322035d4ac6aa17386ac9dd05f9c7a8d6720e99.tar.lz
yt-local-f322035d4ac6aa17386ac9dd05f9c7a8d6720e99.tar.xz
yt-local-f322035d4ac6aa17386ac9dd05f9c7a8d6720e99.zip
Add functional but preliminary channel tab support
Add channel tabs to the channel template and script Update continuation token to request different tabs Add support for 'reelItemRenderer' format required to extract shorts
Diffstat (limited to 'youtube/templates/channel.html')
-rw-r--r--youtube/templates/channel.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html
index 6266aab..b86cd54 100644
--- a/youtube/templates/channel.html
+++ b/youtube/templates/channel.html
@@ -33,7 +33,7 @@
<hr/>
<nav class="channel-tabs">
- {% for tab_name in ('Videos', 'Playlists', 'About') %}
+ {% for tab_name in ('Videos', 'Shorts', 'Streams', 'Playlists', 'About') %}
{% if tab_name.lower() == current_tab %}
<a class="tab page-button">{{ tab_name }}</a>
{% else %}
@@ -73,7 +73,7 @@
<!-- new-->
<div id="links-metadata">
- {% if current_tab == 'videos' %}
+ {% if current_tab in ('videos', 'shorts', 'streams') %}
{% set sorts = [('1', 'views'), ('2', 'oldest'), ('3', 'newest')] %}
<div id="number-of-results">{{ number_of_videos }} videos</div>
{% elif current_tab == 'playlists' %}
@@ -110,11 +110,11 @@
<hr/>
<footer class="pagination-container">
- {% if current_tab == 'videos' and current_sort.__str__() == '2' %}
+ {% if (current_tab in ('videos', 'shorts', 'streams')) and current_sort.__str__() == '2' %}
<nav class="next-previous-button-row">
{{ common_elements.next_previous_ctoken_buttons(None, ctoken, channel_url + '/' + current_tab, parameters_dictionary) }}
</nav>
- {% elif current_tab == 'videos' %}
+ {% elif current_tab in ('videos', 'shorts', 'streams') %}
<nav class="pagination-list">
{{ common_elements.page_buttons(number_of_pages, channel_url + '/' + current_tab, parameters_dictionary, include_ends=(current_sort.__str__() == '3')) }}
</nav>