Skip to content

Commit

Permalink
Fixed a bug with Daycomics module
Browse files Browse the repository at this point in the history
  • Loading branch information
YofaGh committed Mar 26, 2024
1 parent f89758c commit 70f0b20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/Daycomics.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Daycomics(Manga):
def get_info(manga, wait=True):
from contextlib import suppress
manga = manga[:-5] if manga.endswith('.html') else manga
manga = manga.replace('https://daycomics.me/en/', '')
response = Daycomics.send_request(f'https://daycomics.me/en/{manga}.html', headers=Daycomics.headers, wait=wait)
soup = BeautifulSoup(response.text, 'html.parser')
cover, title, summary = '', '', ''
Expand All @@ -29,6 +30,7 @@ def get_info(manga, wait=True):

def get_chapters(manga, wait=True):
manga = manga[:-5] if manga.endswith('.html') else manga
manga = manga.replace('https://daycomics.me/en/', '')
response = Daycomics.send_request(f'https://daycomics.me/en/{manga}.html', headers=Daycomics.headers, wait=wait)
soup = BeautifulSoup(response.text, 'html.parser')
lis = soup.find_all('li', {'class': 'normal_ep'})
Expand Down

0 comments on commit 70f0b20

Please sign in to comment.