Watch page: add info box with allowed countries and tor exit node
Should help with debugging various content blocks
This commit is contained in:
@@ -318,6 +318,14 @@ def _extract_formats(info, player_response):
|
||||
|
||||
info['formats'].append(fmt)
|
||||
|
||||
# get ip address
|
||||
if info['formats']:
|
||||
query_string = info['formats'][0].get('url', '?').split('?')[1]
|
||||
info['ip_address'] = deep_get(
|
||||
urllib.parse.parse_qs(query_string), 'ip', 0)
|
||||
|
||||
|
||||
|
||||
def _extract_playability_error(info, player_response, error_prefix=''):
|
||||
if info['formats']:
|
||||
info['playability_status'] = None
|
||||
|
||||
Reference in New Issue
Block a user