Skip to content

Commit

Permalink
watch.py: Support /shorts urls
Browse files Browse the repository at this point in the history
  • Loading branch information
user234683 committed Sep 6, 2021
1 parent 2972aa0 commit f8b2f8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions youtube/watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ def format_bytes(bytes):
@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:
Expand Down

0 comments on commit f8b2f8d

Please sign in to comment.