added followers only visibility

This commit is contained in:
Lord Of Nougate 2022-07-18 22:19:00 +02:00
parent 7f2d72100b
commit 2156cc15a1

View File

@ -21,7 +21,8 @@ if os.getenv('radarr_eventtype'):
body = "New content added to Jellyfin: \n" body = "New content added to Jellyfin: \n"
body += "Movie: " + os.getenv('radarr_movie_title') + '\n' body += "Movie: " + os.getenv('radarr_movie_title') + '\n'
mk.notes_create( mk.notes_create(
text=body text=body,
visibility="followers"
) )
@ -35,14 +36,14 @@ if os.getenv('sonarr_eventtype'):
episode_title = os.getenv('sonarr_episodefile_episodetitles') episode_title = os.getenv('sonarr_episodefile_episodetitles')
release_quality = os.getenv('sonarr_episodefile_quality') release_quality = os.getenv('sonarr_episodefile_quality')
body += "%s - S%sE%s - %s [%s]\n" % (series_title, season_number, episode_number, episode_title, release_quality) body += "%s - S%sE%s - %s [%s]\n" % (series_title, season_number, episode_number, episode_title, release_quality)
mk.notes_create( mk.notes_create(
text=body text=body,
visibility="followers"
) )
if os.getenv('sonarr_eventtype') == 'Test': if os.getenv('sonarr_eventtype') == 'Test':
mk.notes_create( mk.notes_create(
text="Test message from jellybot" text="Test from Jellybot.",
visibility="followers"
) )