mirror of
https://gitlab.com/RemixDev/deezer-py.git
synced 2025-01-14 10:35:14 +00:00
Fixed Invalid character in "Accept-Language" issue
This commit is contained in:
parent
b1f86ab227
commit
29c3ce0058
|
@ -1,3 +1,4 @@
|
|||
import re
|
||||
import requests
|
||||
import json
|
||||
from deezer.gw import GW
|
||||
|
@ -140,7 +141,7 @@ class Deezer:
|
|||
if len(self.childs)-1 < child_n: child_n = 0
|
||||
self.current_user = self.childs[child_n]
|
||||
self.selected_account = child_n
|
||||
self.http_headers["Accept-Language"] = self.current_user['language']
|
||||
self.http_headers["Accept-Language"] = re.sub(r"[^0-9A-Za-z *,-.;=]", "", self.current_user['language'])
|
||||
|
||||
return (self.current_user, self.selected_account)
|
||||
|
||||
|
|
Loading…
Reference in a new issue