From 60621e8c9487583b2e558adf0f7b7c278c70aeed Mon Sep 17 00:00:00 2001 From: girst Date: Thu, 24 Sep 2020 20:11:09 +0200 Subject: [PATCH] remove more button from xmlfeeds makes it necessary to remove the fallback from invidious (untested) --- app/invidious/__init__.py | 8 -------- app/youtube/templates/xmlfeed.html.j2 | 4 ---- 2 files changed, 12 deletions(-) diff --git a/app/invidious/__init__.py b/app/invidious/__init__.py index 1099f07..aa97677 100644 --- a/app/invidious/__init__.py +++ b/app/invidious/__init__.py @@ -50,10 +50,6 @@ def search(): @frontend.route('/channel/') @frontend.route('/user/') def channel(channel_id): - # proxying invidious is way slower, so we don't do it for page 0 (i.e the 15 newest videos we can get from youtube ourselves) - if 'page' not in request.args: - return fallback_route(channel_id) - page = int(request.args.get('page', 1)) sort_by = request.args.get('sort_by', 'newest') provider = request.args.get('provider', 'invidio.us:443') @@ -70,10 +66,6 @@ def channel(channel_id): @frontend.route('/playlist') def playlist(): - # proxying invidious is way slower, so we don't do it for page 0 (i.e the 15 newest videos we can get from youtube ourselves) - if 'page' not in request.args: - return fallback_route() - playlist_id = request.args.get('list') if not playlist_id: return "bad list id", 400 # todo diff --git a/app/youtube/templates/xmlfeed.html.j2 b/app/youtube/templates/xmlfeed.html.j2 index 646382a..e4a76cb 100644 --- a/app/youtube/templates/xmlfeed.html.j2 +++ b/app/youtube/templates/xmlfeed.html.j2 @@ -15,8 +15,4 @@ {% if not rows|length %}no more results{% endif %} - -
-{{ macros.pagination("more", {'page':(+1,0)}, +1) }} -
{% endblock %} -- 2.39.3