1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-16 06:15:46 +00:00

Fix: title from meta

This commit is contained in:
Ashutosh Chaudhary 2020-12-12 19:12:35 +05:30
parent c2f08dd505
commit 2103cec4a5

View file

@ -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,8 +69,7 @@ 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 = []
headers = {'Referer': url} headers = {'Referer': url}