[YoutubeDL] remove duplicate check for formats existence

This commit is contained in:
remitamine 2016-01-01 16:02:32 +01:00
parent f3a95abbfc
commit a5e50c2ebe

View File

@ -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