mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 09:02:57 +01:00
[la7] Modernize
This commit is contained in:
parent
057c0609fc
commit
228d30ed06
@ -20,9 +20,10 @@ class LA7IE(InfoExtractor):
|
|||||||
|
|
||||||
_TEST = {
|
_TEST = {
|
||||||
'url': 'http://www.la7.tv/richplayer/?assetid=50355319',
|
'url': 'http://www.la7.tv/richplayer/?assetid=50355319',
|
||||||
'file': '50355319.mp4',
|
|
||||||
'md5': 'ec7d1f0224d20ba293ab56cf2259651f',
|
'md5': 'ec7d1f0224d20ba293ab56cf2259651f',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
|
'id': '50355319',
|
||||||
|
'ext': 'mp4',
|
||||||
'title': 'IL DIVO',
|
'title': 'IL DIVO',
|
||||||
'description': 'Un film di Paolo Sorrentino con Toni Servillo, Anna Bonaiuto, Giulio Bosetti e Flavio Bucci',
|
'description': 'Un film di Paolo Sorrentino con Toni Servillo, Anna Bonaiuto, Giulio Bosetti e Flavio Bucci',
|
||||||
'duration': 6254,
|
'duration': 6254,
|
||||||
@ -31,9 +32,7 @@ class LA7IE(InfoExtractor):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
video_id = self._match_id(url)
|
||||||
video_id = mobj.group('id')
|
|
||||||
|
|
||||||
xml_url = 'http://www.la7.tv/repliche/content/index.php?contentId=%s' % video_id
|
xml_url = 'http://www.la7.tv/repliche/content/index.php?contentId=%s' % video_id
|
||||||
doc = self._download_xml(xml_url, video_id)
|
doc = self._download_xml(xml_url, video_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user