From 181e1f40019c81be1e54d8e5e901622568c5c753 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 14 Jun 2023 12:57:09 +0800 Subject: [PATCH] fix --- app/api/servarr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/servarr.py b/app/api/servarr.py index e862ae58..c71327c7 100644 --- a/app/api/servarr.py +++ b/app/api/servarr.py @@ -483,13 +483,13 @@ async def arr_series_lookup(apikey: str, term: str, db: Session = Depends(get_db if tmdbinfo: season_num = tmdbinfo.get('season') if season_num: - seasons = list(range(1, int(season_num) + 1)) + seasons = [{"seasonNumber": sea} for sea in range(1, int(season_num) + 1)] if subscribe: return [SonarrSeries( id=subscribe.id, title=subscribe.name, seasonCount=1, - seasons=[subscribe.season], + seasons=[{"seasonNumber": subscribe.season}], year=subscribe.year, isAvailable=True, monitored=True,