implemented episode var-check

This commit is contained in:
Lord Of Nougate 2022-06-03 23:05:40 +02:00
parent 87cbdb579c
commit 0cb2307967

View File

@ -35,6 +35,9 @@ if os.getenv('sonarr_eventtype'):
body = "New content added to Jellyfin: \n"
body += 'Series: ' + os.getenv('sonarr_series_title') + '\n'
body += 'Season: ' + os.getenv('sonarr_episodefile_seasonnumber') + '\n'
if os.getenv('sonarr_release_absoluteepisodenumbers'):
body += 'Season: ' + os.getenv('sonarr_release_absoluteepisodenumbers') + '\n'
elif os.getenv('sonarr_release_episodenumbers'):
body += 'Episode: ' + os.getenv('sonarr_release_episodenumbers') + '\n'
toot(server_url, body, server_token)