aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornixxo <c.nixxo@gmail.com>2020-10-26 13:36:29 +0100
committerGitHub <noreply@github.com>2020-10-26 13:36:29 +0100
commit5fec75c81cf1a83fac9b35af08dc6750dba0e07b (patch)
tree77cefdaf7973956c032dd0f9489920eb0e3a5945
parent6410992da9cb472391f03f7a5a8c69ebeb52a1c8 (diff)
downloadhypervideo-pre-5fec75c81cf1a83fac9b35af08dc6750dba0e07b.tar.lz
hypervideo-pre-5fec75c81cf1a83fac9b35af08dc6750dba0e07b.tar.xz
hypervideo-pre-5fec75c81cf1a83fac9b35af08dc6750dba0e07b.zip
[mtv] Fix a missing match_id
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))
-rw-r--r--youtube_dlc/extractor/mtv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dlc/extractor/mtv.py b/youtube_dlc/extractor/mtv.py
index 6b3658397..eaf43429f 100644
--- a/youtube_dlc/extractor/mtv.py
+++ b/youtube_dlc/extractor/mtv.py
@@ -300,7 +300,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
except RegexNotFoundError:
mgid = None
- title = self._match_id(url)
+ title = url_basename(url)
try:
window_data = self._parse_json(self._search_regex(