following episode function good, need to work on the random episode and more admin stuff
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s

This commit is contained in:
2026-08-25 16:24:43 +01:00
parent e66c7034f0
commit e85c372ad8
9 changed files with 193 additions and 8 deletions
+19
View File
@@ -37,3 +37,22 @@ def test_website(url_website,bool_proxy=False):
status = "exception not targeted"
return status
def randomEpisode():
return 0,0
def followingEpisode(season,episode,seasonInformation):
lastEpisode = False
#check if the episode is the last one of the season
if (episode < seasonInformation[season]['episodes']):
#the current episode is not the
episode += 1
#check if the season is the last one
elif((season+1) < (len(seasonInformation)-1)):
season += 1
episode = 1
else:
print("You watched the last episode of the serie")
lastEpisode = True
return season,episode,lastEpisode