diff --git a/app/routers/admin.py b/app/routers/admin.py index e9d636c..362c8df 100644 --- a/app/routers/admin.py +++ b/app/routers/admin.py @@ -33,7 +33,7 @@ def get_youtube_id(url): youtube_regex = ( r'(https?://)?(www\.)?' '(youtube|youtu|youtube-nocookie)\.(com|be)/' - '(watch\?v=|embed/|v/|.+\?v=)?([^&=%\?]{11})') + '(watch\?v=|embed/|shorts/|v/|.+\?v=)?([^&=%\?]{11})') youtube_regex_match = re.match(youtube_regex, url) if youtube_regex_match: