Thanks ivek. I already looked at those scripts of course, but what I don't get is is how PVD knows when first season is finished. When Function ParsePage_IMDBMovieSEASON1 stops with AddEpisode, and Function ParsePage_IMDBMovieSEASON2 starts?
Actually, it's a very simple definition.
When the website runs out of episode data when downloading episodes for season 1, the ParsePage_IMDBMovieSEASON1 function stops with AddEpisode and the ParsePage_IMDBMovieSEASON2 function starts to download episodes for season 2, and so on, until there are no more seasons for a particular series. Therefore, it is important to know how many seasons a particular series has, which is why several scripts were created at that time to download different numbers of seasons for series.
For example, one series has only one season, or it has only one season and also an unknown season, or several seasons and in addition an unknown season has been added. There are also series with only an unknown season and a larger number of episodes.