This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user