1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-19 16:03:48 +02:00

fix arabella

This commit is contained in:
Lukas Winkler 2022-03-29 00:01:09 +02:00
parent 925b7ab81e
commit f5993ef38a
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -10,7 +10,11 @@ URL = "wss://www.arabella.at/api/_socket/"
class ArabellaFetcher(BaseFetcher):
def get(self, channel):
ws: WebSocket = create_connection(URL, suppress_origin=True)
ws: WebSocket = create_connection(
URL,
suppress_origin=True,
header=["User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0"]
)
init = ws.recv()
ws.send(json.dumps({"type": "select_channels", "channelIds": [1]}))