mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-28 22:24:34 +01:00
Added new qualities for videos
This commit is contained in:
parent
2eb268c3ff
commit
174cacc9e0
1 changed files with 21 additions and 19 deletions
|
@ -146,11 +146,13 @@ class RTVEALaCartaIE(InfoExtractor):
|
||||||
return alphabet
|
return alphabet
|
||||||
|
|
||||||
def _extract_png_formats(self, video_id):
|
def _extract_png_formats(self, video_id):
|
||||||
|
formats = []
|
||||||
|
|
||||||
|
for manager in (self._manager, 'rtveplayw'):
|
||||||
png = self._download_webpage(
|
png = self._download_webpage(
|
||||||
f'http://www.rtve.es/ztnr/movil/thumbnail/{self._manager}/videos/{video_id}.png',
|
f'http://www.rtve.es/ztnr/movil/thumbnail/{manager}/videos/{video_id}.png',
|
||||||
video_id, 'Downloading url information', query={'q': 'v2'})
|
video_id, 'Downloading url information', query={'q': 'v2'})
|
||||||
q = qualities(['Media', 'Alta', 'HQ', 'HD_READY', 'HD_FULL'])
|
q = qualities(['Media', 'Alta', 'HQ', 'HD_READY', 'HD_FULL'])
|
||||||
formats = []
|
|
||||||
for quality, video_url in self._decrypt_url(png):
|
for quality, video_url in self._decrypt_url(png):
|
||||||
ext = determine_ext(video_url)
|
ext = determine_ext(video_url)
|
||||||
if ext == 'm3u8':
|
if ext == 'm3u8':
|
||||||
|
|
Loading…
Reference in a new issue