SoulofSukuna commited on
Commit
578df45
·
verified ·
1 Parent(s): 6e185fa

Update torrents/x1337.py

Browse files
Files changed (1) hide show
  1. torrents/x1337.py +2 -1
torrents/x1337.py CHANGED
@@ -18,7 +18,8 @@ class x1337:
18
  async def _individual_scrap(self, session, url, obj):
19
  try:
20
  async with session.get(url, headers=HEADER_AIO) as res:
21
- html = await res.text(encoding="ISO-8859-1")
 
22
  soup = BeautifulSoup(html, "html.parser")
23
  try:
24
  magnet = soup.select_one(".no-top-radius > div > ul > li > a")[
 
18
  async def _individual_scrap(self, session, url, obj):
19
  try:
20
  async with session.get(url, headers=HEADER_AIO) as res:
21
+ res.encoding = "ISO-8859-1" # Set the encoding
22
+ html = await res.text()
23
  soup = BeautifulSoup(html, "html.parser")
24
  try:
25
  magnet = soup.select_one(".no-top-radius > div > ul > li > a")[