diff options
author | Astound <kirito@disroot.org> | 2024-01-22 05:47:09 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2024-01-22 05:47:09 +0800 |
commit | 4be01d39647dd3761710dc75ed2fd326f17b8580 (patch) | |
tree | 2bab4526d5b3107a41c8857617ffa3720b691c76 /youtube/templates | |
parent | b45e3476c8e158103649563cd0506f57011dabdd (diff) | |
download | yt-local-4be01d39647dd3761710dc75ed2fd326f17b8580.tar.lz yt-local-4be01d39647dd3761710dc75ed2fd326f17b8580.tar.xz yt-local-4be01d39647dd3761710dc75ed2fd326f17b8580.zip |
Put back sort by oldest logic since YouTube added it back
Previous commit replaced it with shorts-filtering, use sort code
number 4 for that instead. Sort by oldest is still broken
pending reverse engineering of new ctoken format, however.
Diffstat (limited to 'youtube/templates')
-rw-r--r-- | youtube/templates/channel.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html index 5fff9de..8d2249c 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', 'newest - no shorts'), ('3', 'newest')] %} + {% set sorts = [('1', 'views'), ('2', 'oldest'), ('3', 'newest'), ('4', 'newest - no shorts'),] %} <div id="number-of-results">{{ number_of_videos }} videos</div> {% elif current_tab == 'playlists' %} {% set sorts = [('2', 'oldest'), ('3', 'newest'), ('4', 'last video added')] %} @@ -112,7 +112,7 @@ <footer class="pagination-container"> {% 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__() in '23')) }} + {{ common_elements.page_buttons(number_of_pages, channel_url + '/' + current_tab, parameters_dictionary, include_ends=(current_sort.__str__() in '34')) }} </nav> {% elif current_tab == 'playlists' or current_tab == 'search' %} <nav class="next-previous-button-row"> |