]> jfr.im git - yt-dlp.git/commitdiff
[mtv] Fix a missing match_id
authornixxo <redacted>
Mon, 26 Oct 2020 12:36:29 +0000 (13:36 +0100)
committerGitHub <redacted>
Mon, 26 Oct 2020 12:36:29 +0000 (13:36 +0100)
Fix a problem introduced in 320724f964f09a5e1f08edd246464db4f0d297f9 where is extracted the ID from the url with self._match_id but the problem is that ID is not always present in the url passed so the title should be extracted as proposed by the fix (and like is done in _real_extract (see line 337))

youtube_dlc/extractor/mtv.py

index 6b3658397fee31566086f288dd02d8ce02cfc7a8..eaf43429f679f16aa191a8f4a2fedb557c49847c 100644 (file)
@@ -300,7 +300,7 @@ def _extract_mgid(self, webpage, url, data_zone=None):
         except RegexNotFoundError:
             mgid = None
 
-        title = self._match_id(url)
+        title = url_basename(url)
 
         try:
             window_data = self._parse_json(self._search_regex(