@@ -1164,23 +1164,23 @@ def getVodSeriesSchedule(sid, _, imdb_cache, imdb_orignal_titles):
11641164
11651165 # Attempt to parse out the season number, start with 1 as the default
11661166 entry ['season_num' ] = '1'
1167- if str (series_title ).endswith (' II' ) or str (foreign_title ).endswith (' II' ) or 'önnur þáttaröð' in str (entry ['desc' ]).lower ():
1167+ if str (series_title ).endswith (' 2' ) or str ( series_title ). endswith ( ' II' ) or str (foreign_title ).endswith (' II' ) or 'önnur þáttaröð' in str (entry ['desc' ]).lower ():
11681168 entry ['season_num' ] = '2'
1169- elif str (series_title ).endswith (' III' ) or str (foreign_title ).endswith (' III' ) or 'þriðja þáttaröð' in str (entry ['desc' ]).lower ():
1169+ elif str (series_title ).endswith (' 3' ) or str ( series_title ). endswith ( ' III' ) or str (foreign_title ).endswith (' III' ) or 'þriðja þáttaröð' in str (entry ['desc' ]).lower ():
11701170 entry ['season_num' ] = '3'
1171- elif str (series_title ).endswith (' IV' ) or str (foreign_title ).endswith (' IV' ) or 'fjórða þáttaröð' in str (entry ['desc' ]).lower ():
1171+ elif str (series_title ).endswith (' 4' ) or str ( series_title ). endswith ( ' IV' ) or str (foreign_title ).endswith (' IV' ) or 'fjórða þáttaröð' in str (entry ['desc' ]).lower ():
11721172 entry ['season_num' ] = '4'
1173- elif str (series_title ).endswith (' V' ) or str (foreign_title ).endswith (' V' ) or 'fimmta þáttaröð' in str (entry ['desc' ]).lower ():
1173+ elif str (series_title ).endswith (' 5' ) or str ( series_title ). endswith ( ' V' ) or str (foreign_title ).endswith (' V' ) or 'fimmta þáttaröð' in str (entry ['desc' ]).lower ():
11741174 entry ['season_num' ] = '5'
1175- elif str (series_title ).endswith (' VI' ) or str (foreign_title ).endswith (' VI' ) or 'sjötta þáttaröð' in str (entry ['desc' ]).lower ():
1175+ elif str (series_title ).endswith (' 6' ) or str ( series_title ). endswith ( ' VI' ) or str (foreign_title ).endswith (' VI' ) or 'sjötta þáttaröð' in str (entry ['desc' ]).lower ():
11761176 entry ['season_num' ] = '6'
1177- elif str (series_title ).endswith (' VII' ) or str (foreign_title ).endswith (' VII' ) or 'sjöunda þáttaröð' in str (entry ['desc' ]).lower ():
1177+ elif str (series_title ).endswith (' 7' ) or str ( series_title ). endswith ( ' VII' ) or str (foreign_title ).endswith (' VII' ) or 'sjöunda þáttaröð' in str (entry ['desc' ]).lower ():
11781178 entry ['season_num' ] = '7'
1179- elif str (series_title ).endswith (' VIII' ) or str (foreign_title ).endswith (' VIII' ) or 'áttunda þáttaröð' in str (entry ['desc' ]).lower ():
1179+ elif str (series_title ).endswith (' 8' ) or str ( series_title ). endswith ( ' VIII' ) or str (foreign_title ).endswith (' VIII' ) or 'áttunda þáttaröð' in str (entry ['desc' ]).lower ():
11801180 entry ['season_num' ] = '8'
1181- elif str (series_title ).endswith (' IX' ) or str (foreign_title ).endswith (' IX' ) or 'níunda þáttaröð' in str (entry ['desc' ]).lower ():
1181+ elif str (series_title ).endswith (' 9' ) or str ( series_title ). endswith ( ' IX' ) or str (foreign_title ).endswith (' IX' ) or 'níunda þáttaröð' in str (entry ['desc' ]).lower ():
11821182 entry ['season_num' ] = '9'
1183- elif str (series_title ).endswith (' XX' ) or str (foreign_title ).endswith (' XX' ) or 'tíunda þáttaröð' in str (entry ['desc' ]).lower ():
1183+ elif str (series_title ).endswith (' 10' ) or str ( series_title ). endswith ( ' XX' ) or str (foreign_title ).endswith (' XX' ) or 'tíunda þáttaröð' in str (entry ['desc' ]).lower ():
11841184 entry ['season_num' ] = '10'
11851185
11861186 # Create the episode numbers programatically to ensure consistency if we're dealing with multi-episode program
0 commit comments