فهرست منبع

[cracked] Modernize

Sergey M․ 10 سال پیش
والد
کامیت
d740333224
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      youtube_dl/extractor/cracked.py

+ 1 - 2
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)