mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-03-13 11:19:48 +00:00
Use _match_id() instead of re.match()
Oops, when I created this extractor I copied the sample code from the 2014 manpage on my system, thus missing 4bc77c8417ca0340d09dcebb311d06aa7d5ba0ac's introduction of the _match_id() helper function.
This commit is contained in:
parent
f46aea8404
commit
8d8acd193e
@ -57,9 +57,7 @@ class IQM2IE(InfoExtractor):
|
|||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
video_id = self._match_id(url)
|
||||||
video_id = mobj.group('id')
|
|
||||||
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
# print "Original URL is", url
|
# print "Original URL is", url
|
||||||
|
Loading…
Reference in New Issue
Block a user