From 7062c7a8546eea4d629713672622ad023f238c92 Mon Sep 17 00:00:00 2001 From: abysslynx <199667803+abysslynx@users.noreply.github.com> Date: Mon, 17 Feb 2025 21:16:22 +0000 Subject: [PATCH] Restore play next without prompt functionality --- resources/lib/play_utils.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/resources/lib/play_utils.py b/resources/lib/play_utils.py index 2455898..601bc17 100644 --- a/resources/lib/play_utils.py +++ b/resources/lib/play_utils.py @@ -1031,7 +1031,7 @@ def prompt_for_stop_actions(item_id, data): prompt_delete_movie_percentage == 100): return - # if no runtime we can't calculate perceantge so just return + # if no runtime we can't calculate percentage so just return if duration == 0: log.debug("No duration so returning") return @@ -1044,10 +1044,9 @@ def prompt_for_stop_actions(item_id, data): if (next_episode is not None and prompt_next_percentage < 100 and item_type == "Episode" and - percentage_complete > prompt_next_percentage): + percentage_complete >= prompt_next_percentage): if play_prompt: - plugin_path = settings.getAddonInfo('path') plugin_path_real = translate_path(os.path.join(plugin_path)) @@ -1058,6 +1057,14 @@ def prompt_for_stop_actions(item_id, data): if not play_next_dialog.get_play_called(): xbmc.executebuiltin("Container.Refresh") + else: + play_info = { + "item_id": next_episode.get("Id"), + "auto_resume": "-1", + "force_transcode": False + } + send_event_notification("jellycon_play_action", play_info) + def stop_all_playback():