new method worked
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
2026-08-26 12:35:43 +01:00
parent 04a216f643
commit 1d86eb582e
7 changed files with 56 additions and 20 deletions
+4 -4
View File
@@ -41,15 +41,15 @@ def test_website(url_website,bool_proxy=False):
def randomEpisode(seasonInformation):
return 0,0
def followingEpisode(season,episode,seasonInformation):
def followingEpisode(season,episode,seasonInformation,maximum_number_seasons):
lastEpisode = False
#check if the episode is the last one of the season
if (episode < seasonInformation[season]['episodes']):
#the current episode is not the
if (episode < seasonInformation[season-1]['episodes']):
#the current episode is not the last one of the season
episode += 1
#check if the season is the last one
elif((season+1) < (len(seasonInformation)-1)):
elif((season+1) < maximum_number_seasons):
season += 1
episode = 1
else: