1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-23 09:17:48 +00:00

[tagesschau] Modernize

This commit is contained in:
Philipp Hagemeister 2014-12-05 10:59:55 +01:00
parent a154eb3d15
commit 122c2f87c1

View file

@ -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(