Skip to content

Commit

Permalink
use lists
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Sep 5, 2023
1 parent 70cae4d commit 6f9fdcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tunein/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""):
Expand Down

0 comments on commit 6f9fdcc

Please sign in to comment.