27-07-2021, 08:11 PM
(Ten post był ostatnio modyfikowany: 27-07-2021, 08:15 PM przez Mariusz89B.)
Sprobujcie zmienic device i device_type na android tv:
P.S
Wersja 0.1.1 jest nieaktualna bo podany jest stary adres do request, nalezy uzyc wersje 0.1.4.
def login():
if len(password) > 0 and len(username) > 0:
data = {'device': 'android_tv', 'login': username, 'password': password}
response = requests.post(
login_url,
json=data,
verify=False,
headers=headers
)def stream_url(video_id, retry=False):
cookies = readFromDB()
if not sessionid or len(video_id) == 0:
return ''
url = video_url + video_id
data = {'format_id': '2', 'device_type': 'android_tv'}
headers.update({'Cookie': cookies})
response = requests.get(
url,
params=data,
verify=False,
headers=headers,
).json()P.S
Wersja 0.1.1 jest nieaktualna bo podany jest stary adres do request, nalezy uzyc wersje 0.1.4.
mods-kodi.pl

