Skip to content

Commit c26fe32

Browse files
authored
Fix YouTube dislike button bug in pafy package (ultralytics#6603)
Per ultralytics#6583 (comment) by @alicera
1 parent 108d58c commit c26fe32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def __init__(self, sources='streams.txt', img_size=640, stride=32, auto=True):
301301
# Start thread to read frames from video stream
302302
st = f'{i + 1}/{n}: {s}... '
303303
if 'youtube.com/' in s or 'youtu.be/' in s: # if source is YouTube video
304-
check_requirements(('pafy', 'youtube_dl'))
304+
check_requirements(('git+https://github.com/Cupcakus/pafy', 'youtube_dl'))
305305
import pafy
306306
s = pafy.new(s).getbest(preftype="mp4").url # YouTube URL
307307
s = eval(s) if s.isnumeric() else s # i.e. s = '0' local webcam

0 commit comments

Comments
 (0)