mirror of
https://github.com/Findus23/RadioStats.git
synced 2024-09-19 16:03:48 +02:00
fix arabella
This commit is contained in:
parent
925b7ab81e
commit
f5993ef38a
1 changed files with 5 additions and 1 deletions
|
@ -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]}))
|
||||
|
|
Loading…
Reference in a new issue