Spaces:
Running
Running
Update search_recommend.py
Browse files- search_recommend.py +1 -1
search_recommend.py
CHANGED
@@ -7,7 +7,7 @@ api_key = os.environ['LISTENNOTES']
|
|
7 |
def search(query):
|
8 |
client = podcast_api.Client(api_key=api_key)
|
9 |
response = client.search(
|
10 |
-
q=query, sort_by_date=0, only_in='title,description', offset=5,
|
11 |
|
12 |
results = response.json()
|
13 |
results_final = results['results']
|
|
|
7 |
def search(query):
|
8 |
client = podcast_api.Client(api_key=api_key)
|
9 |
response = client.search(
|
10 |
+
q=query, sort_by_date=0, only_in='title,description', offset=5, type='podcast')
|
11 |
|
12 |
results = response.json()
|
13 |
results_final = results['results']
|