import json
+from .common import InfoExtractor
from ..utils import (
ExtractorError,
format_field,
traverse_obj,
try_get,
- unified_timestamp
+ unified_timestamp,
)
-from .common import InfoExtractor
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',
'language': 'en',
'thumbnail': 'https://lsp.littlstar.com/channels/WHISTLE/BAD_JOKES/SEASON_1/BAD_JOKES_101/poster.jpg',
'description': 'Bad Jokes - Champions, Adam Pally, Super Troopers, Team Edge and 2Hype',
- 'release_timestamp': None,
- 'channel': None,
- 'channel_id': None,
- 'channel_url': None,
'episode': 'E01: Bad Jokes 1',
'episode_number': 1,
'episode_id': '336',
@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)
@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)
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: