diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
commit | 7e21328585afda6d66f98ca476301680eeffac32 (patch) | |
tree | 266a4e7b20443f94572748781d71fc0375a15037 /yt_dlp/extractor/radlive.py | |
parent | Adding upstream version 2024.05.27. (diff) | |
download | yt-dlp-7e21328585afda6d66f98ca476301680eeffac32.tar.xz yt-dlp-7e21328585afda6d66f98ca476301680eeffac32.zip |
Adding upstream version 2024.07.01.upstream/2024.07.01
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'yt_dlp/extractor/radlive.py')
-rw-r--r-- | yt_dlp/extractor/radlive.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/yt_dlp/extractor/radlive.py b/yt_dlp/extractor/radlive.py index 325e278..6050892 100644 --- a/yt_dlp/extractor/radlive.py +++ b/yt_dlp/extractor/radlive.py @@ -27,7 +27,7 @@ class RadLiveIE(InfoExtractor): 'channel': 'Proximity', 'channel_id': '9ce6dd01-70a4-4d59-afb6-d01f807cd009', 'channel_url': 'https://rad.live/content/channel/9ce6dd01-70a4-4d59-afb6-d01f807cd009', - } + }, }, { 'url': 'https://rad.live/content/episode/bbcf66ec-0d02-4ca0-8dc0-4213eb2429bf', 'md5': '40b2175f347592125d93e9a344080125', @@ -104,7 +104,7 @@ class RadLiveSeasonIE(RadLiveIE): # XXX: Do not subclass from concrete IE @classmethod def suitable(cls, url): - return False if RadLiveIE.suitable(url) else super(RadLiveSeasonIE, cls).suitable(url) + return False if RadLiveIE.suitable(url) else super().suitable(url) def _real_extract(self, url): season_id = self._match_id(url) @@ -154,7 +154,7 @@ query WebChannelListing ($lrn: ID!) { @classmethod def suitable(cls, url): - return False if RadLiveIE.suitable(url) else super(RadLiveChannelIE, cls).suitable(url) + return False if RadLiveIE.suitable(url) else super().suitable(url) def _real_extract(self, url): channel_id = self._match_id(url) @@ -164,8 +164,8 @@ query WebChannelListing ($lrn: ID!) { headers={'Content-Type': 'application/json'}, data=json.dumps({ 'query': self._QUERY, - 'variables': {'lrn': f'lrn:12core:media:content:channel:{channel_id}'} - }).encode('utf-8')) + 'variables': {'lrn': f'lrn:12core:media:content:channel:{channel_id}'}, + }).encode()) data = traverse_obj(graphql, ('data', 'channel')) if not data: |