Skip to content

Commit

Permalink
Minor Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentDemonSD authored Nov 3, 2022
1 parent 5a4502d commit a5cb0dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/modules/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def scrapper(update, context):
sendMessage(gd_txt, context.bot, update.message)
elif "htpmovies" in link and "/exit.php" in link:
sent = sendMessage('Running scrape. Wait about some secs.', context.bot, update.message)
prsd = " " + htpmovies(link)
prsd = htpmovies(link)
editMessage(prsd, sent)
elif "htpmovies" in link:
sent = sendMessage('Running scrape. Wait about some secs.', context.bot, update.message)
Expand All @@ -75,11 +75,11 @@ def scrapper(update, context):
prsd = f"Total Links Found : {len(links)}\n\n"
editMessage(prsd, sent)
msdcnt = -1
for pg, b in enumerate(y, start=1):
for b in y:
if str(b.string).lower().startswith(z.lower()):
msdcnt += 1
url = f"https://htpmovies.lol"+links[msdcnt]
prsd += f"{pg}. <b>{b.string}</b>\n{htpmovies(url)}\n\n"
prsd += f"{msdcnt+1}. <b>{b.string}</b>\n{htpmovies(url)}\n\n"
editMessage(prsd, sent)
asleep(5)
if len(prsd) > 4000:
Expand Down

0 comments on commit a5cb0dd

Please sign in to comment.