Skip to content

Commit

Permalink
fix(Setsu Scans using different location for Manga Name): 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
thezak48 committed Dec 16, 2023
1 parent 6cdce1b commit 1f0350b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions manga_dl/utilities/sites/madraNew.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ def get_manga_title(self, manga_url):
result = requests.get(manga_url, headers=self.base_headers, timeout=30)

if result.status_code == 200:
soup = BeautifulSoup(result.text, "html.parser")
node = soup.find("div", {"class": "post-title"})
title = node.h1
if "setsuscans.com" in manga_url:
soup = BeautifulSoup(result.text, "html.parser")
node = soup.find("div", {"id": "manga-title"})
title = node.h1
else:
soup = BeautifulSoup(result.text, "html.parser")
node = soup.find("div", {"class": "post-title"})
title = node.h1

self.logger.debug("Found the following title: %s", title.text)
return title.text.lstrip().rstrip()
Expand Down

0 comments on commit 1f0350b

Please sign in to comment.