[lrt] Modernize
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 27 Oct 2014 01:27:49 +0000 (02:27 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 27 Oct 2014 01:27:49 +0000 (02:27 +0100)
youtube_dl/extractor/lrt.py

index db5df40789c5167e1062364a860fa9bc1d369218..d72d470aa8dbb532f80f44796354dabd3de92261 100644 (file)
@@ -32,9 +32,7 @@ class LRTIE(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)
 
         title = remove_end(self._og_search_title(webpage), ' - LRT')