Update sonarr.py

forgot to delete ' - ' for SXXEXX naming :/
This commit is contained in:
Will Longo 2018-04-17 14:33:02 -05:00 committed by GitHub
parent 5e94e6976b
commit 989c863a11

View file

@ -15,7 +15,7 @@ influx_payload = []
for show in tv_shows.keys(): for show in tv_shows.keys():
seriesTitle = '{}'.format(tv_shows[show]['series']['title']) seriesTitle = '{}'.format(tv_shows[show]['series']['title'])
sxe = 'S{:0>2} - E{:0>2}'.format(tv_shows[show]['seasonNumber'],tv_shows[show]['episodeNumber']) sxe = 'S{:0>2}E{:0>2}'.format(tv_shows[show]['seasonNumber'],tv_shows[show]['episodeNumber'])
missing.append((seriesTitle, sxe, tv_shows[show]['id'], tv_shows[show]['title'])) missing.append((seriesTitle, sxe, tv_shows[show]['id'], tv_shows[show]['title']))
for seriesTitle, sxe, id, title in missing: for seriesTitle, sxe, id, title in missing:
@ -43,7 +43,7 @@ influx_payload2 = []
for show in upcoming_shows.keys(): for show in upcoming_shows.keys():
seriesTitle = '{}'.format(upcoming_shows[show]['series']['title']) seriesTitle = '{}'.format(upcoming_shows[show]['series']['title'])
sxe = 'S{:0>2} - E{:0>2}'.format(upcoming_shows[show]['seasonNumber'],upcoming_shows[show]['episodeNumber']) sxe = 'S{:0>2}E{:0>2}'.format(upcoming_shows[show]['seasonNumber'],upcoming_shows[show]['episodeNumber'])
upcoming.append((seriesTitle, sxe, upcoming_shows[show]['id'], upcoming_shows[show]['title'], upcoming_shows[show]['airDate'])) upcoming.append((seriesTitle, sxe, upcoming_shows[show]['id'], upcoming_shows[show]['title'], upcoming_shows[show]['airDate']))
for seriesTitle, sxe, id, title, airDate in upcoming: for seriesTitle, sxe, id, title, airDate in upcoming: