projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a154eb3
)
[tagesschau] Modernize
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 5 Dec 2014 09:59:55 +0000
(10:59 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 5 Dec 2014 09:59:55 +0000
(10:59 +0100)
youtube_dl/extractor/tagesschau.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tagesschau.py
b/youtube_dl/extractor/tagesschau.py
index b870474515ba61ee33641c86554d53d68a6bf46d..17e1231128f3262702be8892e60f00270d1b249f 100644
(file)
--- 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(