mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-23 22:35:33 +08:00
13 lines
389 B
Python
13 lines
389 B
Python
from plex.interfaces.core.base import Interface
|
|
|
|
|
|
class PluginInterface(Interface):
|
|
path = ':/plugins'
|
|
|
|
def reload_services(self, plugin_id):
|
|
response = self.http.get(plugin_id, 'services/reload')
|
|
return response.status_code == 200
|
|
|
|
def restart(self, plugin_id):
|
|
response = self.http.get(plugin_id, 'restart')
|
|
return response.status_code == 200
|