[cnet] skip hls_phone if hls_tablet is present
This commit is contained in:
parent
b306c439d7
commit
a641b24592
@ -57,7 +57,9 @@ class CNETIE(InfoExtractor):
|
|||||||
subtitles = {}
|
subtitles = {}
|
||||||
description = vdata.get('description')
|
description = vdata.get('description')
|
||||||
|
|
||||||
for vid in vdata['files'].values():
|
for (fkey, vid) in vdata['files'].items():
|
||||||
|
if fkey == 'hls_phone' and 'hls_tablet' in vdata['files']:
|
||||||
|
continue
|
||||||
result = tp.extract(('http://link.theplatform.com/s/%s/%s' % (mpx_account, vid)))
|
result = tp.extract(('http://link.theplatform.com/s/%s/%s' % (mpx_account, vid)))
|
||||||
formats.extend(result['formats'])
|
formats.extend(result['formats'])
|
||||||
subtitles = self._merge_subtitles(subtitles, result['subtitles'])
|
subtitles = self._merge_subtitles(subtitles, result['subtitles'])
|
||||||
|
Loading…
Reference in New Issue
Block a user