mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-02 20:42:51 +08:00
Update openload.py
This commit is contained in:
parent
67ea0a7111
commit
7956586566
@ -367,17 +367,12 @@ class OpenloadIE(InfoExtractor):
|
||||
entry = entries[0] if entries else {}
|
||||
subtitles = entry.get('subtitles')
|
||||
|
||||
# Some videos have special name and some of these
|
||||
# have not got their extension on their title
|
||||
# If url has their file name, it has always its extension
|
||||
video_ext = determine_ext(title, None) or determine_ext(url, 'mp4')
|
||||
|
||||
info_dict = {
|
||||
'id': video_id,
|
||||
'title': title,
|
||||
'thumbnail': entry.get('thumbnail') or self._og_search_thumbnail(webpage, default=None),
|
||||
'url': video_url,
|
||||
'ext': video_ext,
|
||||
'ext': determine_ext(title, None) or determine_ext(url, 'mp4'),
|
||||
'subtitles': subtitles,
|
||||
'http_headers': headers,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user