mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
fix: correctly handle None values for season and episode parameters in API requests for bitmagnet
This commit is contained in:
@@ -65,9 +65,9 @@ class BitmagnetScraper(BaseScraper):
|
||||
"offset": offset,
|
||||
"limit": limit,
|
||||
}
|
||||
if season:
|
||||
if season is not None:
|
||||
params["season"] = season
|
||||
if episode:
|
||||
if episode is not None:
|
||||
params["ep"] = episode
|
||||
async with self.session.get(
|
||||
f"{self.url}/torznab/api", params=params
|
||||
|
||||
Reference in New Issue
Block a user