ExtractorError,
float_or_none,
int_or_none,
+ remove_start,
strip_or_none,
try_get,
unified_timestamp,
def _real_extract(self, url):
mobj = self._match_valid_url(url)
display_id = mobj.group('id')
- domain = mobj.group('domain').lstrip('www.')
+ domain = remove_start(mobj.group('domain'), 'www.')
country = mobj.group('country') or mobj.group('subdomain_country') or mobj.group('plus_country')
host = 'disco-api.' + domain if domain[0] == 'd' else 'eu2-prod.disco-api.com'
return self._get_disco_api_info(