Skip to content

Commit

Permalink
fix: symlink works correctly now. missing arg in episode parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Spoked authored and Spoked committed Feb 3, 2024
1 parent 81dd4fd commit 8dc7c58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/utils/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ def _parse(self, item, string) -> dict:

def episodes(self, string) -> List[int]:
"""Return a list of episodes in the given string."""
parse = self._parse(string)
parse = self._parse(None, string)
return parse["episodes"]

def episodes_in_season(self, season, string) -> List[int]:
"""Return a list of episodes in the given season."""
parse = self._parse(item=None, string=string)
parse = self._parse(None, string)
if parse["season"] == season:
return parse["episodes"]
return []
Expand Down

0 comments on commit 8dc7c58

Please sign in to comment.