Skip to content

Commit

Permalink
Update stream.py
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ldyy authored Nov 19, 2024
1 parent 75b235e commit eff6088
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions comet/api/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,10 @@ async def stream(request: Request, b64config: str, type: str, id: str):

search_terms = [name]
if type == "series":
search_terms = []
if not kitsu:
search_terms.append(f"{name} S0{season}E0{episode}")
search_terms.append(f"{name} s0{season}e0{episode}")
search_terms.append(f"{name} S{season:02d}E{episode:02d}")
search_terms.append(f"{name} s{season:02d}e{episode:02d}")
else:
search_terms.append(f"{name} {episode}")
tasks.extend(
Expand Down

0 comments on commit eff6088

Please sign in to comment.