Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions web_interface/blueprints/api_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -5147,7 +5147,7 @@ def execute_plugin_action():

try:
result = subprocess.run(
['python3', wrapper_path],
[sys.executable, wrapper_path],
capture_output=True,
text=True,
timeout=120,
Expand Down Expand Up @@ -5208,7 +5208,7 @@ def execute_plugin_action():

try:
result = subprocess.run(
['python3', wrapper_path],
[sys.executable, wrapper_path],
capture_output=True,
text=True,
timeout=120,
Expand Down Expand Up @@ -5251,7 +5251,6 @@ def execute_plugin_action():
# For OAuth flows, we might need to import the script as a module
if action_def.get('oauth_flow'):
# Import script as module to get auth URL
import sys
import importlib.util

spec = importlib.util.spec_from_file_location("plugin_action", script_file)
Expand Down Expand Up @@ -5304,7 +5303,7 @@ def execute_plugin_action():
else:
# Simple script execution
result = subprocess.run(
['python3', str(script_file)],
[sys.executable, str(script_file)],
capture_output=True,
text=True,
timeout=60,
Expand Down Expand Up @@ -5415,7 +5414,7 @@ def authenticate_spotify():

try:
result = subprocess.run(
['python3', wrapper_path],
[sys.executable, wrapper_path],
capture_output=True,
text=True,
timeout=120,
Expand Down Expand Up @@ -5522,7 +5521,7 @@ def authenticate_ytm():

# Run the authentication script
result = subprocess.run(
['python3', str(auth_script)],
[sys.executable, str(auth_script)],
capture_output=True,
text=True,
timeout=60,
Expand Down