diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2024-10-12 17:47:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-12 17:47:37 +0000 |
commit | 9d43dcb2c5c38f443f84dfc126cd32720e1a1ad6 (patch) | |
tree | c9a4bafe46ddf47746002b0407b2cc79fb9b590e | |
parent | f4338714241b11d9d43768ae71a25f5e952f677d (diff) |
[ie/cwtv] Fix extraction (#11230)
Closes #9935
Authored by: bashonly
-rw-r--r-- | yt_dlp/extractor/cwtv.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/cwtv.py b/yt_dlp/extractor/cwtv.py index 4559d3cd6..cb432e616 100644 --- a/yt_dlp/extractor/cwtv.py +++ b/yt_dlp/extractor/cwtv.py @@ -6,6 +6,7 @@ from ..utils import ( parse_iso8601, smuggle_url, str_or_none, + update_url_query, ) @@ -98,7 +99,9 @@ class CWTVIE(InfoExtractor): raise ExtractorError(data['msg'], expected=True) video_data = data['video'] title = video_data['title'] - mpx_url = video_data.get('mpx_url') or f'https://link.theplatform.com/s/cwtv/media/guid/2703454149/{video_id}?formats=M3U' + mpx_url = update_url_query( + video_data.get('mpx_url') or f'https://link.theplatform.com/s/cwtv/media/guid/2703454149/{video_id}', + {'formats': 'M3U+none'}) season = str_or_none(video_data.get('season')) episode = str_or_none(video_data.get('episode')) |