diff options
author | Philipp Hagemeister <[email protected]> | 2015-02-01 15:03:03 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2015-02-01 15:03:03 +0100 |
commit | 228d30ed0616f6c1b5cff335b8b56f4fde48b76d (patch) | |
tree | 2aa6e87bb49c4980bae146126a8320887a93b5c6 /youtube_dl/extractor/la7.py | |
parent | 057c0609fc6620017ff4a5b30847e0dc2644df9f (diff) | |
download | youtube-dl-228d30ed0616f6c1b5cff335b8b56f4fde48b76d.tar.gz youtube-dl-228d30ed0616f6c1b5cff335b8b56f4fde48b76d.zip |
[la7] Modernize
Diffstat (limited to 'youtube_dl/extractor/la7.py')
-rw-r--r-- | youtube_dl/extractor/la7.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/la7.py b/youtube_dl/extractor/la7.py index db2028e9f..60625c42d 100644 --- a/youtube_dl/extractor/la7.py +++ b/youtube_dl/extractor/la7.py @@ -20,9 +20,10 @@ class LA7IE(InfoExtractor): _TEST = { 'url': 'http://www.la7.tv/richplayer/?assetid=50355319', - 'file': '50355319.mp4', 'md5': 'ec7d1f0224d20ba293ab56cf2259651f', 'info_dict': { + 'id': '50355319', + 'ext': 'mp4', 'title': 'IL DIVO', 'description': 'Un film di Paolo Sorrentino con Toni Servillo, Anna Bonaiuto, Giulio Bosetti e Flavio Bucci', 'duration': 6254, @@ -31,9 +32,7 @@ class LA7IE(InfoExtractor): } def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') - + video_id = self._match_id(url) xml_url = 'http://www.la7.tv/repliche/content/index.php?contentId=%s' % video_id doc = self._download_xml(xml_url, video_id) |