From f71f20b8c9975c4a01b9c65b960e105aa23fe314 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Tue, 5 Sep 2023 17:19:21 +0100 Subject: [PATCH] use lists (#4) --- tunein/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tunein/__init__.py b/tunein/__init__.py index c4efa51..7fa36d9 100644 --- a/tunein/__init__.py +++ b/tunein/__init__.py @@ -63,12 +63,12 @@ def get_stream_url(url): @staticmethod def featured(): res = requests.post(TuneIn.featured_url) - yield from TuneIn._get_stations(res) + return list(TuneIn._get_stations(res)) @staticmethod def search(query): res = requests.post(TuneIn.search_url, data={"query": query}) - yield from TuneIn._get_stations(res, query) + return list(TuneIn._get_stations(res, query)) @staticmethod def _get_stations(res: requests.Response, query: str = ""):