Skip to content

Commit

Permalink
Search from url
Browse files Browse the repository at this point in the history
Added url field to db
Set debug conf dir
Mdex added geturl from id
  • Loading branch information
ThePromidius committed Feb 8, 2024
1 parent 33ad030 commit 8ef26ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/sources/MangaDex/MangaDex.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def parse_manga_uuid(url):
manga_id = mid.group()
return manga_id

def url_from_id(manga_id):
return f"https://mangadex.org/title/{manga_id}"

class MangaDex(ISource):
ID = 'd07c9c2425764da8ba056505f57cf40c'
Expand Down Expand Up @@ -136,6 +138,7 @@ def get_info(url) -> SeriesInfo | None:

attributes = data["attributes"]
mi = SeriesInfo()
mi.url = url_from_id(manga_id)
mi.id = manga_id
mi.title = attributes["title"]["en"]
mi.alt_titles = []
Expand Down

0 comments on commit 8ef26ba

Please sign in to comment.