]> jfr.im git - yt-dlp.git/commitdiff
[rai] Fix extraction of http formats (#3272)
authornixxo <redacted>
Sat, 2 Apr 2022 05:57:56 +0000 (07:57 +0200)
committerGitHub <redacted>
Sat, 2 Apr 2022 05:57:56 +0000 (22:57 -0700)
Closes #3270
Authored by: nixxo

yt_dlp/extractor/rai.py

index 9d243b2be6447d0f26c2b100da75183372d70b7c..6864129c6eaa1a6db6ff8ece230b393ab5c24ff8 100644 (file)
@@ -118,7 +118,7 @@ def _extract_relinker_info(self, relinker_url, video_id, audio_only=False):
         })
 
     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