watch.py: Support /shorts urls
Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
parent
9c7e93ecf8
commit
3066f9a37e
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user