From 8f14f78a92902368e1c64abc1831b802ade7ab40 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Tue, 7 May 2024 12:25:52 -0600 Subject: [PATCH] Fixed gen_subtitles_queue I broke this when I added queuing. --- subgen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subgen.py b/subgen.py index 0463503..818a6b1 100644 --- a/subgen.py +++ b/subgen.py @@ -311,7 +311,7 @@ def receive_tautulli_webhook( fullpath = file logging.debug("Path of file: " + fullpath) - gen_subtitles_queue(path_mapping(fullpath), transcribe_or_translate, True) + gen_subtitles_queue(path_mapping(fullpath), transcribe_or_translate) else: return { "message": "This doesn't appear to be a properly configured Tautulli webhook, please review the instructions again!"} @@ -338,7 +338,7 @@ def receive_plex_webhook( fullpath = get_plex_file_name(plex_json['Metadata']['ratingKey'], plexserver, plextoken) logging.debug("Path of file: " + fullpath) - gen_subtitles_queue(path_mapping(fullpath), transcribe_or_translate, True) + gen_subtitles_queue(path_mapping(fullpath), transcribe_or_translate) refresh_plex_metadata(plex_json['Metadata']['ratingKey'], plexserver, plextoken) logging.info(f"Metadata for item {plex_json['Metadata']['ratingKey']} refreshed successfully.") except Exception as e: @@ -363,7 +363,7 @@ def receive_jellyfin_webhook( fullpath = get_jellyfin_file_name(ItemId, jellyfinserver, jellyfintoken) logging.debug(f"Path of file: {fullpath}") - gen_subtitles_queue(path_mapping(fullpath), transcribe_or_translate, True) + gen_subtitles_queue(path_mapping(fullpath), transcribe_or_translate) try: refresh_jellyfin_metadata(ItemId, jellyfinserver, jellyfintoken) logging.info(f"Metadata for item {ItemId} refreshed successfully.") @@ -396,7 +396,7 @@ def receive_emby_webhook( if event == "library.new" and procaddedmedia or event == "playback.start" and procmediaonplay: logging.debug("Path of file: " + fullpath) - gen_subtitles_queue(path_mapping(fullpath), transcribe_or_translate, True) + gen_subtitles_queue(path_mapping(fullpath), transcribe_or_translate) return ""