From 2103cec4a5b3931c9a5d31dd9aed673773bba26e Mon Sep 17 00:00:00 2001 From: Ashutosh Chaudhary <216.ashutosh@gmail.com> Date: Sat, 12 Dec 2020 19:12:35 +0530 Subject: [PATCH] Fix: title from meta --- youtube_dl/extractor/mxplayer.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/youtube_dl/extractor/mxplayer.py b/youtube_dl/extractor/mxplayer.py index 153b234b6..1dffac36d 100644 --- a/youtube_dl/extractor/mxplayer.py +++ b/youtube_dl/extractor/mxplayer.py @@ -18,8 +18,8 @@ class MxplayerIE(InfoExtractor): 'url': 'https://www.mxplayer.in/movie/watch-knock-knock-hindi-dubbed-movie-online-b9fa28df3bfb8758874735bbd7d2655a?watch=true', 'info_dict': { 'id': 'b9fa28df3bfb8758874735bbd7d2655a', - 'ext': 'mpd', - 'title': 'watch-knock-knock-hindi-dubbed-movie-online', + 'ext': 'mp4', + 'title': 'Knock Knock Movie | Watch 2015 Knock Knock Full Movie Online- MX Player', }, 'params': { 'skip_download': True, @@ -53,7 +53,6 @@ class MxplayerIE(InfoExtractor): video_slug = mobj.group('slug') video_id = video_slug.split('-')[-1] - title = "-".join(video_slug.split("-")[:-1]) webpage = self._download_webpage(url, video_id) @@ -70,8 +69,7 @@ class MxplayerIE(InfoExtractor): video_dict = source['entities'][video_id] 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 = [] headers = {'Referer': url}