1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-09 12:33:42 +08:00

Update openload.py

This commit is contained in:
Sergey M
2018-06-02 00:14:20 +07:00
committed by GitHub
Unverified
parent 67ea0a7111
commit 7956586566
+1 -6
View File
@@ -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,
}