diff --git a/arr-mastodon.py b/arr-mastodon.py index 575a7d1..7f75c15 100755 --- a/arr-mastodon.py +++ b/arr-mastodon.py @@ -35,7 +35,10 @@ 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' - body += 'Episode: ' + os.getenv('sonarr_release_episodenumbers') + '\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)