From 0cb230796727068b864d0267512a976217b94076 Mon Sep 17 00:00:00 2001 From: sevi-kun Date: Fri, 3 Jun 2022 23:05:40 +0200 Subject: [PATCH] implemented episode var-check --- arr-mastodon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)