mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 20:34:52 +00:00
Fix
This commit is contained in:
parent
474f488f1a
commit
1672d013f5
1 changed files with 2 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ async def getDataMelong(msg, kueri, CurrentPage, user):
|
||||||
# Zonafilm GetData
|
# Zonafilm GetData
|
||||||
async def getDataZonafilm(msg, kueri, CurrentPage, user):
|
async def getDataZonafilm(msg, kueri, CurrentPage, user):
|
||||||
if not SCRAP_DICT.get(msg.id):
|
if not SCRAP_DICT.get(msg.id):
|
||||||
zonafilm = await http.get(f'http://194.195.90.100//?s={kueri}', headers=headers)
|
zonafilm = await http.get(f'http://194.195.90.100/?s={kueri}', headers=headers)
|
||||||
text = BeautifulSoup(zonafilm.text, "lxml")
|
text = BeautifulSoup(zonafilm.text, "lxml")
|
||||||
entry = text.find_all(class_="entry-header")
|
entry = text.find_all(class_="entry-header")
|
||||||
data = []
|
data = []
|
||||||
|
|
@ -359,6 +359,7 @@ async def getDataZonafilm(msg, kueri, CurrentPage, user):
|
||||||
link = i.find(class_="entry-title").find("a").get("href")
|
link = i.find(class_="entry-title").find("a").get("href")
|
||||||
data.append({"judul": judul, "link": link, "genre": genre})
|
data.append({"judul": judul, "link": link, "genre": genre})
|
||||||
if not data:
|
if not data:
|
||||||
|
await editPesan(msg, "Sorry could not find any matching results!")
|
||||||
return None, 0, None
|
return None, 0, None
|
||||||
SCRAP_DICT[msg.id] = [split_arr(data, 6), kueri]
|
SCRAP_DICT[msg.id] = [split_arr(data, 6), kueri]
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue