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
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user