arcticaurora commited on
Commit
be5b4d1
·
verified ·
1 Parent(s): 84ad102

Update tools/youtube.py

Browse files
Files changed (1) hide show
  1. tools/youtube.py +1 -0
tools/youtube.py CHANGED
@@ -61,6 +61,7 @@ def extract_video_id(url_or_id: str) -> str:
61
  r'(?:youtube\.com\/embed\/)([\w-]{11})',
62
  r'(?:youtu\.be\/)([\w-]{11})',
63
  r'(?:youtube\.com\/v\/)([\w-]{11})',
 
64
  ]
65
 
66
  for pattern in patterns:
 
61
  r'(?:youtube\.com\/embed\/)([\w-]{11})',
62
  r'(?:youtu\.be\/)([\w-]{11})',
63
  r'(?:youtube\.com\/v\/)([\w-]{11})',
64
+ r'(?:youtube\.com\/shorts\/)([\w-]{11})',
65
  ]
66
 
67
  for pattern in patterns: