[RAI] Fix extraction of http formats
authornixxo <nixxo@protonmail.com>
Sat, 2 Apr 2022 05:57:56 +0000 (07:57 +0200)
committerdirkf <fieldhouse@gmx.net>
Tue, 5 Apr 2022 14:21:59 +0000 (15:21 +0100)
From https://github.com/yt-dlp/yt-dlp/pull/3272
Closes https://github.com/yt-dlp/yt-dlp/issues/3270
Authored by: nixxo

youtube_dl/extractor/rai.py

index 7b0315a624953ddf16c8e3fe1ca2ec36db990d9a..563d3400f8a13d913c649e870cedf6cb160dadee 100644 (file)
@@ -106,7 +106,7 @@ class RaiBaseIE(InfoExtractor):
         }.items() if v is not None)
 
     def _create_http_urls(self, relinker_url, fmts):
-        _RELINKER_REG = r'https?://(?P<host>[^/]+?)/(?:i/)?(?P<extra>[^/]+?)/(?P<path>.+?)/(?P<id>\d+)(?:_(?P<quality>[\d\,]+))?(?:\.mp4|/playlist\.m3u8).+?'
+        _RELINKER_REG = r'https?://(?P<host>[^/]+?)/(?:i/)?(?P<extra>[^/]+?)/(?P<path>.+?)/(?P<id>\w+)(?:_(?P<quality>[\d\,]+))?(?:\.mp4|/playlist\.m3u8).+?'
         _MP4_TMPL = '%s&overrideUserAgentRule=mp4-%s'
         _QUALITY = {
             # tbr: w, h