ultralytics 8.2.65 fix YouTube throttling bug (#14684)
This commit is contained in:
parent
15266d37a1
commit
2b95f9aec0
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
||||||
|
|
||||||
__version__ = "8.2.64"
|
__version__ = "8.2.65"
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -545,7 +545,7 @@ def get_best_youtube_url(url, method="pytube"):
|
||||||
"""
|
"""
|
||||||
if method == "pytube":
|
if method == "pytube":
|
||||||
# Switched from pytube to pytubefix to resolve https://github.com/pytube/pytube/issues/1954
|
# Switched from pytube to pytubefix to resolve https://github.com/pytube/pytube/issues/1954
|
||||||
check_requirements("pytubefix==6.3.4") # bug in 6.4.2 https://github.com/JuanBindez/pytubefix/issues/123
|
check_requirements("pytubefix>=6.5.2")
|
||||||
from pytubefix import YouTube
|
from pytubefix import YouTube
|
||||||
|
|
||||||
streams = YouTube(url).streams.filter(file_extension="mp4", only_video=True)
|
streams = YouTube(url).streams.filter(file_extension="mp4", only_video=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue