mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 06:09:58 +08:00
[simplex] Fix format extraction for python 2.6 and 2.7
This commit is contained in:
parent
36144cfe1b
commit
788fcd4585
@ -48,7 +48,7 @@ class SimplexIE(InfoExtractor):
|
|||||||
|
|
||||||
def _known_simplex_format(self, simplex_formats, fid):
|
def _known_simplex_format(self, simplex_formats, fid):
|
||||||
for sf in simplex_formats:
|
for sf in simplex_formats:
|
||||||
if type(sf['id']) == str and sf['id'] == fid:
|
if sf['id'] == fid:
|
||||||
return sf
|
return sf
|
||||||
elif type(sf['id']) == list and fid in sf['id']:
|
elif type(sf['id']) == list and fid in sf['id']:
|
||||||
return sf
|
return sf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user