mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-03-17 13:32:21 +09:00
Don't use features removed in newer python versions.
This commit is contained in:
parent
8534da9840
commit
71e70c5048
@ -1,5 +1,4 @@
|
|||||||
import json
|
import json
|
||||||
import operator
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
@ -131,8 +130,9 @@ class VimeoIE(InfoExtractor):
|
|||||||
'quality': quality,
|
'quality': quality,
|
||||||
'id': format_id,
|
'id': format_id,
|
||||||
})
|
})
|
||||||
formats = reduce(operator.add,
|
formats = []
|
||||||
[files[q] for q in ('hd', 'sd', 'other')])
|
for key in ('hd', 'sd', 'other'):
|
||||||
|
formats += files[key]
|
||||||
if len(formats) == 0:
|
if len(formats) == 0:
|
||||||
raise ExtractorError(u'No known codec found')
|
raise ExtractorError(u'No known codec found')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user