mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-02 16:37:59 +09:00
[alaa] convert " to '
This commit is contained in:
parent
42c767c7a5
commit
ce6e7c2271
@ -35,10 +35,10 @@ class AlaaIE(InfoExtractor):
|
|||||||
|
|
||||||
def map_formats(v):
|
def map_formats(v):
|
||||||
return {
|
return {
|
||||||
"url": v.get("link"),
|
'url': v.get('link'),
|
||||||
"filesize": parse_filesize(v.get("size")),
|
'filesize': parse_filesize(v.get('size')),
|
||||||
"format_id": v.get("res"),
|
'format_id': v.get('res'),
|
||||||
"ext": v.get("ext"),
|
'ext': v.get('ext'),
|
||||||
}
|
}
|
||||||
|
|
||||||
formats = list(map(map_formats, video_details['file']['video']))
|
formats = list(map(map_formats, video_details['file']['video']))
|
||||||
@ -48,7 +48,7 @@ class AlaaIE(InfoExtractor):
|
|||||||
'title': video_details['title'],
|
'title': video_details['title'],
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'thumbnail': url_or_none(video_image),
|
'thumbnail': url_or_none(video_image),
|
||||||
'duration': int_or_none(parse_duration(video_details.get('duration') + ":00"))
|
'duration': int_or_none(parse_duration(video_details.get('duration') + ':00'))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user