mirror of
https://github.com/l1ving/youtube-dl
synced 2020-11-18 19:53:54 -08:00
Add files via upload
Fix 404 Error
This commit is contained in:
parent
10026329c2
commit
5aaa764aa8
@ -1278,9 +1278,11 @@ class YoutubeDL(object):
|
||||
elif format_spec == 'bestvideo':
|
||||
video_formats = [
|
||||
f for f in formats
|
||||
if f.get('acodec') == 'none']
|
||||
if (f.get('acodec') == 'none' and f.get('filesize') != None)]
|
||||
if video_formats:
|
||||
yield video_formats[-1]
|
||||
# print(video_formats[-1])
|
||||
# print(video_formats[-1].get('filesize'))
|
||||
elif format_spec == 'worstvideo':
|
||||
video_formats = [
|
||||
f for f in formats
|
||||
|
Loading…
x
Reference in New Issue
Block a user