diff options
author | Astound <kirito@disroot.org> | 2024-01-22 05:39:11 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2024-01-22 05:39:11 +0800 |
commit | b45e3476c8e158103649563cd0506f57011dabdd (patch) | |
tree | 2cc8126655a58ecb4228a78b84218fd0f79da536 /youtube/templates | |
parent | d591956baafa6a16b956f814b69ecbf1f5e23aba (diff) | |
download | yt-local-b45e3476c8e158103649563cd0506f57011dabdd.tar.lz yt-local-b45e3476c8e158103649563cd0506f57011dabdd.tar.xz yt-local-b45e3476c8e158103649563cd0506f57011dabdd.zip |
channels: Use the UU playlist to get videos by default
This will be much less likely to break moving forward since
YouTube rarely changes the playlist api
Videos page now includes shorts and streams in the video lsit
Also include an option to filter out shorts on the videos page
Diffstat (limited to 'youtube/templates')
-rw-r--r-- | youtube/templates/channel.html | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html index b86cd54..5fff9de 100644 --- a/youtube/templates/channel.html +++ b/youtube/templates/channel.html @@ -74,7 +74,7 @@ <!-- new--> <div id="links-metadata"> {% if current_tab in ('videos', 'shorts', 'streams') %} - {% set sorts = [('1', 'views'), ('2', 'oldest'), ('3', 'newest')] %} + {% set sorts = [('1', 'views'), ('2', 'newest - no shorts'), ('3', 'newest')] %} <div id="number-of-results">{{ number_of_videos }} videos</div> {% elif current_tab == 'playlists' %} {% set sorts = [('2', 'oldest'), ('3', 'newest'), ('4', 'last video added')] %} @@ -110,13 +110,9 @@ <hr/> <footer class="pagination-container"> - {% 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 in ('videos', 'shorts', 'streams') %} + {% if 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')) }} + {{ common_elements.page_buttons(number_of_pages, channel_url + '/' + current_tab, parameters_dictionary, include_ends=(current_sort.__str__() in '23')) }} </nav> {% elif current_tab == 'playlists' or current_tab == 'search' %} <nav class="next-previous-button-row"> |