From 773ed6670261c6920ef5a906f064edea495458f2 Mon Sep 17 00:00:00 2001 From: Mootfrost Date: Sun, 13 Apr 2025 20:46:48 +0300 Subject: [PATCH] Add option to choose between providers --- app/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 76f904a..98ef18b 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -170,7 +170,7 @@ async def query_list(e: events.InlineQuery.Event): user = await get_user(e.sender_id) if not user: return await e.answer(switch_pm='Link account first', switch_pm_param='link') - if user.default == 'spotify' and user.spotify_auth: + if user.spotify_auth and (str(e.text) == 's' or user.default == 'spotify' and not str(e.text)): ctx = MusicProviderContext(SpotifyStrategy(e.sender_id)) else: ctx = MusicProviderContext(YandexMusicStrategy(e.sender_id))