about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-12-05 10:59:55 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-12-05 10:59:55 +0100
commit122c2f87c17984e4ae04cbb3c3631b547dc61105 (patch)
treea9f717b39c267ff5ab58ca0666163ccc6c132361
parenta154eb3d159baa2b7f8f4dcd9c1215d7a3486651 (diff)
downloadyoutube-dl-122c2f87c17984e4ae04cbb3c3631b547dc61105.tar.gz
youtube-dl-122c2f87c17984e4ae04cbb3c3631b547dc61105.tar.xz
youtube-dl-122c2f87c17984e4ae04cbb3c3631b547dc61105.zip
[tagesschau] Modernize
-rw-r--r--youtube_dl/extractor/tagesschau.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/youtube_dl/extractor/tagesschau.py b/youtube_dl/extractor/tagesschau.py
index b87047451..17e123112 100644
--- a/youtube_dl/extractor/tagesschau.py
+++ b/youtube_dl/extractor/tagesschau.py
@@ -28,14 +28,8 @@ class TagesschauIE(InfoExtractor):
     }
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
-        video_id = mobj.group('id')
-
-        if video_id.startswith('-'):
-            display_id = video_id.strip('-')
-        else:
-            display_id = video_id
-
+        video_id = self._match_id(url)
+        display_id = video_id.lstrip('-')
         webpage = self._download_webpage(url, display_id)
 
         playerpage = self._download_webpage(