[cracked] Modernize
authorSergey M․ <dstftw@gmail.com>
Thu, 23 Apr 2015 15:59:18 +0000 (21:59 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 23 Apr 2015 15:59:18 +0000 (21:59 +0600)
youtube_dl/extractor/cracked.py

index b2b151558c9bb88e27143756089640a6ca31c85e..94d03ce2af108a4a711f09f3db9fecd5bd62566e 100644 (file)
@@ -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)