[YoutubeDL] remove duplicate check for formats existence
This commit is contained in:
parent
f3a95abbfc
commit
a5e50c2ebe
@ -1208,8 +1208,6 @@ class YoutubeDL(object):
|
|||||||
raise ExtractorError('Missing "id" field in extractor result')
|
raise ExtractorError('Missing "id" field in extractor result')
|
||||||
if 'title' not in info_dict:
|
if 'title' not in info_dict:
|
||||||
raise ExtractorError('Missing "title" field in extractor result')
|
raise ExtractorError('Missing "title" field in extractor result')
|
||||||
if not info_dict.get('formats'):
|
|
||||||
raise ExtractorError('No video formats found')
|
|
||||||
|
|
||||||
if 'playlist' not in info_dict:
|
if 'playlist' not in info_dict:
|
||||||
# It isn't part of a playlist
|
# It isn't part of a playlist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user