We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 181f9d0 commit 3d0d9f0Copy full SHA for 3d0d9f0
1 file changed
pyxtream/pyxtream.py
@@ -1023,6 +1023,11 @@ def get_series_info_by_id(self, get_series: dict):
1023
get_series.seasons[season_name] = season
1024
if "episodes" in series_seasons.keys():
1025
for series_season in series_seasons["episodes"].keys():
1026
+ # add only episodes of current season
1027
+ # use series_season as fallback to make sure episodes will be set
1028
+ # if we can not parse the season number
1029
+ if int(series_info.get('season_number', series_season)) != int(series_season):
1030
+ continue
1031
for episode_info in series_seasons["episodes"][str(series_season)]:
1032
new_episode_channel = Episode(
1033
self, series_info, "Testing", episode_info
0 commit comments