Skip to content

Commit

Permalink
Fixed some comments and code
Browse files Browse the repository at this point in the history
  • Loading branch information
Florentin Le Moal committed Oct 13, 2024
1 parent 174cacc commit bc4907c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yt_dlp/extractor/rtve.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class RTVEALaCartaIE(InfoExtractor):
IE_NAME = 'rtve.es:alacarta'
IE_DESC = 'RTVE a la carta, play and infantil'
IE_DESC = 'RTVE a la carta and Play'
_VALID_URL = [
r'https?://(?:www\.)?rtve\.es/(m/)?(alacarta/videos|filmoteca)/[^/]+/[^/]+/(?P<id>\d+)',
r'https?://(?:www\.)?rtve\.es/(m/)?play/videos/[^/]+/[^/]+/(?P<id>\d+)',
Expand Down Expand Up @@ -147,12 +147,12 @@ def _get_alfabet(alphabet_data):

def _extract_png_formats(self, video_id):
formats = []

q = qualities(['Media', 'Alta', 'HQ', 'HD_READY', 'HD_FULL'])
for manager in (self._manager, 'rtveplayw'):
png = self._download_webpage(
f'http://www.rtve.es/ztnr/movil/thumbnail/{manager}/videos/{video_id}.png',
video_id, 'Downloading url information', query={'q': 'v2'})
q = qualities(['Media', 'Alta', 'HQ', 'HD_READY', 'HD_FULL'])

for quality, video_url in self._decrypt_url(png):
ext = determine_ext(video_url)
if ext == 'm3u8':
Expand Down

0 comments on commit bc4907c

Please sign in to comment.