mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 11:04:51 +00:00
Fix
This commit is contained in:
parent
d9b352d4a4
commit
e7a2ea4d06
1 changed files with 4 additions and 1 deletions
|
|
@ -101,7 +101,10 @@ def get_provider(url):
|
||||||
|
|
||||||
async def search_jw(movie_name: str, locale: str):
|
async def search_jw(movie_name: str, locale: str):
|
||||||
m_t_ = ""
|
m_t_ = ""
|
||||||
response = (await http.get(f"https://yasirapi.eu.org/justwatch?q={movie_name}&locale={locale}")).json()
|
try:
|
||||||
|
response = (await http.get(f"https://yasirapi.eu.org/justwatch?q={movie_name}&locale={locale}")).json()
|
||||||
|
except:
|
||||||
|
return m_t_
|
||||||
if not response.get("results"):
|
if not response.get("results"):
|
||||||
LOGGER.error("JustWatch API Error or got Rate Limited.")
|
LOGGER.error("JustWatch API Error or got Rate Limited.")
|
||||||
return m_t_
|
return m_t_
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue