|
|
@ -310,6 +310,8 @@ def delete_subtitles(media_type, language, forced, hi, media_path, subtitles_pat
|
|
|
|
subtitles_path=path_mappings.path_replace_reverse(subtitles_path))
|
|
|
|
subtitles_path=path_mappings.path_replace_reverse(subtitles_path))
|
|
|
|
store_subtitles(path_mappings.path_replace_reverse(media_path), media_path)
|
|
|
|
store_subtitles(path_mappings.path_replace_reverse(media_path), media_path)
|
|
|
|
notify_sonarr(sonarr_series_id)
|
|
|
|
notify_sonarr(sonarr_series_id)
|
|
|
|
|
|
|
|
event_stream(type='episode-wanted', action='update', payload=sonarr_episode_id)
|
|
|
|
|
|
|
|
return True
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
os.remove(path_mappings.path_replace_movie(subtitles_path))
|
|
|
|
os.remove(path_mappings.path_replace_movie(subtitles_path))
|
|
|
@ -323,6 +325,7 @@ def delete_subtitles(media_type, language, forced, hi, media_path, subtitles_pat
|
|
|
|
subtitles_path=path_mappings.path_replace_reverse_movie(subtitles_path))
|
|
|
|
subtitles_path=path_mappings.path_replace_reverse_movie(subtitles_path))
|
|
|
|
store_subtitles_movie(path_mappings.path_replace_reverse_movie(media_path), media_path)
|
|
|
|
store_subtitles_movie(path_mappings.path_replace_reverse_movie(media_path), media_path)
|
|
|
|
notify_radarr(radarr_id)
|
|
|
|
notify_radarr(radarr_id)
|
|
|
|
|
|
|
|
event_stream(type='movie-wanted', action='update', payload=radarr_id)
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|