Update YouTube URL https://youtu.be/LNwODJXcvt4 (#4808)
This commit is contained in:
parent
16ce193d6e
commit
dbc53f6741
12 changed files with 26 additions and 25 deletions
|
|
@ -48,7 +48,7 @@ class LoadStreams:
|
|||
# Start thread to read frames from video stream
|
||||
st = f'{i + 1}/{n}: {s}... '
|
||||
if urlparse(s).hostname in ('www.youtube.com', 'youtube.com', 'youtu.be'): # if source is YouTube video
|
||||
# YouTube format i.e. 'https://www.youtube.com/watch?v=Zgi9g1ksQHc' or 'https://youtu.be/Zgi9g1ksQHc'
|
||||
# YouTube format i.e. 'https://www.youtube.com/watch?v=Zgi9g1ksQHc' or 'https://youtu.be/LNwODJXcvt4'
|
||||
s = get_best_youtube_url(s)
|
||||
s = eval(s) if s.isnumeric() else s # i.e. s = '0' local webcam
|
||||
if s == 0 and (is_colab() or is_kaggle()):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue