mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-02-17 13:00:45 +01:00
[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))
This commit is contained in:
parent
6410992da9
commit
5fec75c81c
@ -300,7 +300,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
|
|||||||
except RegexNotFoundError:
|
except RegexNotFoundError:
|
||||||
mgid = None
|
mgid = None
|
||||||
|
|
||||||
title = self._match_id(url)
|
title = url_basename(url)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
window_data = self._parse_json(self._search_regex(
|
window_data = self._parse_json(self._search_regex(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user