mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-16 14:45:45 +00:00
Fix: title from meta
This commit is contained in:
parent
c2f08dd505
commit
2103cec4a5
1 changed files with 3 additions and 5 deletions
|
@ -18,8 +18,8 @@ class MxplayerIE(InfoExtractor):
|
||||||
'url': 'https://www.mxplayer.in/movie/watch-knock-knock-hindi-dubbed-movie-online-b9fa28df3bfb8758874735bbd7d2655a?watch=true',
|
'url': 'https://www.mxplayer.in/movie/watch-knock-knock-hindi-dubbed-movie-online-b9fa28df3bfb8758874735bbd7d2655a?watch=true',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'b9fa28df3bfb8758874735bbd7d2655a',
|
'id': 'b9fa28df3bfb8758874735bbd7d2655a',
|
||||||
'ext': 'mpd',
|
'ext': 'mp4',
|
||||||
'title': 'watch-knock-knock-hindi-dubbed-movie-online',
|
'title': 'Knock Knock Movie | Watch 2015 Knock Knock Full Movie Online- MX Player',
|
||||||
},
|
},
|
||||||
'params': {
|
'params': {
|
||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
|
@ -53,7 +53,6 @@ class MxplayerIE(InfoExtractor):
|
||||||
video_slug = mobj.group('slug')
|
video_slug = mobj.group('slug')
|
||||||
|
|
||||||
video_id = video_slug.split('-')[-1]
|
video_id = video_slug.split('-')[-1]
|
||||||
title = "-".join(video_slug.split("-")[:-1])
|
|
||||||
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
|
@ -70,7 +69,6 @@ class MxplayerIE(InfoExtractor):
|
||||||
video_dict = source['entities'][video_id]
|
video_dict = source['entities'][video_id]
|
||||||
stream_urls = self._get_stream_urls(video_dict)
|
stream_urls = self._get_stream_urls(video_dict)
|
||||||
|
|
||||||
if not title:
|
|
||||||
title = self._og_search_title(webpage, fatal=True, default=video_dict['title'])
|
title = self._og_search_title(webpage, fatal=True, default=video_dict['title'])
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
|
|
Loading…
Reference in a new issue