diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-09-06 15:26:23 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-09-06 17:46:25 -0500 |
commit | 3066f9a37edd9977961e29fdf1d34d4f2cb0e342 (patch) | |
tree | 12a90c2bb886c53694384bee457bf21d1f5b93bd /youtube/watch.py | |
parent | 9c7e93ecf8768f9c6b310f89a5e8bc69aba555e3 (diff) | |
download | yt-local-3066f9a37edd9977961e29fdf1d34d4f2cb0e342.tar.lz yt-local-3066f9a37edd9977961e29fdf1d34d4f2cb0e342.tar.xz yt-local-3066f9a37edd9977961e29fdf1d34d4f2cb0e342.zip |
watch.py: Support /shorts urls
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/watch.py')
-rw-r--r-- | youtube/watch.py | 2 |
1 files changed, 2 insertions, 0 deletions
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/<video_id>') +@yt_app.route('/shorts') +@yt_app.route('/shorts/<video_id>') def get_watch_page(video_id=None): video_id = request.args.get('v') or video_id if not video_id: |