1
0
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:
John Hawkinson 2016-10-09 08:00:15 -04:00
parent f46aea8404
commit 8d8acd193e

View File

@ -57,9 +57,7 @@ class IQM2IE(InfoExtractor):
}]
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('id')
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
# print "Original URL is", url