From 6b4c8aa8fa3e0ad15cd96563e7fe687074d5e813 Mon Sep 17 00:00:00 2001 From: timofey <tim@ongoteam.yaconnect.com> Date: Fri, 31 Mar 2023 11:28:13 +0000 Subject: [PATCH] configurable redirect --- v6d3music/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v6d3music/app.py b/v6d3music/app.py index 8c5f566..e13a6be 100644 --- a/v6d3music/app.py +++ b/v6d3music/app.py @@ -15,6 +15,7 @@ __all__ = ("AppContext",) class MusicAppFactory(AppFactory): def __init__(self, secret: str, api: Api): self.secret = secret + self.redirect = "https://music.parrrate.ru/auth/" self.loop = asyncio.get_running_loop() self._api = api @@ -45,6 +46,7 @@ class AppContext: try: factory = MusicAppFactory(await request_token("music-client", "token"), self.api) await set_config("secret", factory.secret) + await set_config("redirect", factory.redirect) except aiohttp.ClientConnectorError: print("no web app (likely due to no token)") else: