Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
uk365 authored Jan 30, 2024
1 parent e43b08e commit c7ffebd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FZBypass/core/bypass_scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ async def kayoanime(url: str) -> str:
async def toonworld4all(url: str):
if "/redirect/main.php?url=" in url:
return f'┎ <b>Source Link:</b> {url}\n\n┖ <b>Bypass Link:</b> {rget(url).url}'
xml = rget(url).text
soup = BeautifulSoup(xml, 'html.parser')
req=requests.get(url)
soup=bs(req.content,'html.parser')
if '/episode/' not in url:
epl = soup.select('a[href*="/episode/"]')
tls = soup.select('div[class*="mks_accordion_heading"]')
stitle = search(r'\"name\":\"(.+)\"', xml).group(1).split('"')[0]
stitle = search(r'\"name\":\"(.+)\"', req).group(1).split('"')[0]
prsd = f'<b><i>{stitle}</i></b>'
for n, (t, l) in enumerate(zip(tls, epl), start=1):
prsd += f'''
Expand Down

0 comments on commit c7ffebd

Please sign in to comment.