Skip to content

Commit

Permalink
chore(Logging): 🔊
Browse files Browse the repository at this point in the history
  • Loading branch information
thezak48 committed Nov 23, 2023
1 parent 127e547 commit 1eb3cc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions manga_dl/utilities/sites/madraNew.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_manga_title(self, manga_url):
return title.text.lstrip().rstrip()

except Exception as e:
self.logger.error("Unable to find the manga title")
self.logger.error(f"Unable to find the manga title on {manga_url}")
self.logger.error(e)

return None
Expand Down Expand Up @@ -79,7 +79,7 @@ def chapter_sort_key(chapter_info):
return chapters, title

except Exception as e:
self.logger.error("Unable to find the manga chapters")
self.logger.error(f"Unable to find the manga chapters on {manga_url}")
self.logger.error(e)

return None
Expand All @@ -103,7 +103,7 @@ def get_chapter_images(self, chapter_url):
return images

except Exception as e:
self.logger.error("Unable to find the chapter images")
self.logger.error(f"Unable to find the chapter images on {chapter_url}")
self.logger.error(e)

return None
Expand All @@ -129,7 +129,7 @@ def get_manga_metadata(self, manga_url):
return genres, summary

except Exception as e:
self.logger.error("Unable to find the manga metadata")
self.logger.error(f"Unable to find the manga metadata on {manga_url}")
self.logger.error(e)

return None
10 changes: 6 additions & 4 deletions manga_dl/utilities/sites/madraOld.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def get_manga_title(self, manga_url):
return data_id, title.text.lstrip().rstrip()

except Exception as e:
self.logger.error("Unable to find the manga id or title needed")
self.logger.error(
f"Unable to find the manga id or title needed for {manga_url}"
)
self.logger.error(e)

return None
Expand Down Expand Up @@ -94,7 +96,7 @@ def chapter_sort_key(chapter_info):
return chapters, title

except Exception as e:
self.logger.error("Unable to find the manga chapters")
self.logger.error(f"Unable to find the manga chapters on {manga_url}")
self.logger.error(e)

return None
Expand Down Expand Up @@ -126,7 +128,7 @@ def get_chapter_images(self, chapter_url):
return images

except Exception as e:
self.logger.error("Unable to find the chapter images")
self.logger.error(f"Unable to find the chapter images on {chapter_url}")
self.logger.error(e)

return None
Expand Down Expand Up @@ -158,7 +160,7 @@ def get_manga_metadata(self, manga_url):
return genres, summary

except Exception as e:
self.logger.error("unable to fetch the manga metadata")
self.logger.error(f"unable to fetch the manga metadata on {manga_url}")
self.logger.error(e)

return None

0 comments on commit 1eb3cc8

Please sign in to comment.