Skip to content

Commit

Permalink
Fix prereleased card issue (in SIF2 at least lmao)
Browse files Browse the repository at this point in the history
  • Loading branch information
DemonicSavage committed Nov 30, 2023
1 parent cf75d2c commit 8f8e2df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mikan-card-downloader"
version = "3.0.0"
version = "3.0.1"
description = "Downloads cards and stills from SIFAS and SIF."
authors = ["DemonicSavage"]
license = "GPLv3"
Expand Down
6 changes: 1 addition & 5 deletions src/mikan/plugins/sif2.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,5 @@ async def create_item(self, data: ClientResponse) -> list[str]:

if isinstance(top_item := page.find(class_="top-item"), bs4.Tag):
links = top_item.find_all("a")
first: str = links[0].get("href")
second: str = links[1].get("href")

return [first, second]

return [link.get("href") for link in links]
raise ParsingError("An error occured while getting a card.")

0 comments on commit 8f8e2df

Please sign in to comment.