From 3066f9a37edd9977961e29fdf1d34d4f2cb0e342 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 6 Sep 2021 15:26:23 -0700 Subject: watch.py: Support /shorts urls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- youtube/watch.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'youtube') diff --git a/youtube/watch.py b/youtube/watch.py index 9fd0333..09f146c 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -512,6 +512,8 @@ time_table = {'h': 3600, 'm': 60, 's': 1} @yt_app.route('/watch') @yt_app.route('/embed') @yt_app.route('/embed/') +@yt_app.route('/shorts') +@yt_app.route('/shorts/') def get_watch_page(video_id=None): video_id = request.args.get('v') or video_id if not video_id: -- cgit v1.2.3