from .common import InfoExtractor from ..utils import js_to_json, ExtractorError, traverse_obj from urllib.parse import urlencode class RudoVideoIE(InfoExtractor): _VALID_URL = r'https?://rudo\.video/live/(?P[^/]+)' def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) if "Streaming is not available in your area." in webpage: self.raise_geo_restricted() stream_url = self._search_regex(r'var\s+streamURL\s*=\s*\'([^?\']+)', webpage, "streamUrl") token_array_string = self._search_regex(r'