feature: add_history_item (closes #295) (OzymandiasTheGreat/mopidy-ytmusic/issues/58)
This commit is contained in:
parent
02e3289616
commit
d0ec2bbf72
6 changed files with 30 additions and 12 deletions
|
|
@ -32,7 +32,7 @@ def initialize_context():
|
|||
|
||||
def get_visitor_id(request_func):
|
||||
response = request_func(YTM_DOMAIN)
|
||||
matches = re.findall(r'ytcfg\.set\s*\(\s*({.+?})\s*\)\s*;', response)
|
||||
matches = re.findall(r'ytcfg\.set\s*\(\s*({.+?})\s*\)\s*;', response.text)
|
||||
visitor_id = ""
|
||||
if len(matches) > 0:
|
||||
ytcfg = json.loads(matches[0])
|
||||
|
|
|
|||
Loading…
Reference in a new issue