Skip to content

Commit

Permalink
Fixed gen_subtitles_queue
Browse files Browse the repository at this point in the history
I broke this when I added queuing.
  • Loading branch information
McCloudS authored May 7, 2024
1 parent c2aa2a3 commit 8f14f78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions subgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!"}
Expand All @@ -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:
Expand All @@ -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.")
Expand Down Expand Up @@ -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 ""

Expand Down

0 comments on commit 8f14f78

Please sign in to comment.