aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-04-23 21:59:18 +0600
committerSergey M․ <dstftw@gmail.com>2015-04-23 21:59:18 +0600
commitd7403332248a3893810f0461a682229552e1fd9e (patch)
tree1b3ed22f3185ea82c995f5c529ccbb6c6d6b50c3
parentc610f38ba9586f21f632e115cbc15e172d60ee40 (diff)
downloadyoutube-dl-d7403332248a3893810f0461a682229552e1fd9e.zip
youtube-dl-d7403332248a3893810f0461a682229552e1fd9e.tar.gz
youtube-dl-d7403332248a3893810f0461a682229552e1fd9e.tar.bz2
[cracked] Modernize
-rw-r--r--youtube_dl/extractor/cracked.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/cracked.py b/youtube_dl/extractor/cracked.py
index b2b1515..94d03ce 100644
--- a/youtube_dl/extractor/cracked.py
+++ b/youtube_dl/extractor/cracked.py
@@ -37,8 +37,7 @@ class CrackedIE(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)