Skip to content

Commit

Permalink
if no mal_id or bad metadata fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wamy-Dev committed Jun 30, 2023
1 parent 3645c20 commit 4b08f99
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scraper/scrapers/functions/metadataFunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ def getMetadata(keys, item):
"trailer": None,
"images": [],
"characters": [],
"volumes": -1,
"chapters": -1,
"published": None,
"authors": [],
"voice_actors": [],
"studios": None,
"nyaarss": f"https://sukebei.nyaa.si/?page=rss&q={urllib.parse.quote_plus(item_name)}&c=0_0&f=0" if item_type == "EroAnime" or item_type == "EroManga" else f"https://nyaa.si/?page=rss&q={urllib.parse.quote_plus(item_name)}&c=0_0&f=0" # noqa: E501
Expand Down Expand Up @@ -242,6 +246,10 @@ def getMetadata(keys, item):
"trailer": None,
"images": [],
"characters": [],
"volumes": -1,
"chapters": -1,
"published": None,
"authors": [],
"voice_actors": [],
"studios": None,
"nyaarss": f"https://sukebei.nyaa.si/?page=rss&q={urllib.parse.quote_plus(item_name)}&c=0_0&f=0" if item_type == "EroAnime" or item_type == "EroManga" else f"https://nyaa.si/?page=rss&q={urllib.parse.quote_plus(item_name)}&c=0_0&f=0" # noqa: E501
Expand Down

0 comments on commit 4b08f99

Please sign in to comment.