This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b14954
commit d56afdf
Showing
21 changed files
with
251 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# plex debugging | ||
try: | ||
import plexhints # noqa: F401 | ||
except ImportError: | ||
pass | ||
else: # the code is running outside of Plex | ||
from plexhints.log_kit import Log # log kit | ||
|
||
# local imports | ||
from const import plugger_data_directory, plugin_directory | ||
|
||
# servers version newer than 1.13 cannot view plugin routes, maybe we can do something with this later | ||
# https://www.reddit.com/r/PleX/comments/ig64mz/comment/jhk5jbu/?utm_source=share&utm_medium=web2x&context=3 | ||
|
||
|
||
def initialize_install(plugin_data): | ||
# type: (dict) -> bool | ||
""" | ||
Initialize the plugin installation process. | ||
Parses the plugin data for further processing depending on the conditions. | ||
Parameters | ||
---------- | ||
plugin_data : dict | ||
The plugin data to process. | ||
Returns | ||
------- | ||
bool | ||
Whether or not the plugin was successfully installed/migrated/updated. | ||
""" | ||
Log.Debug("{}: {}".format("plugger_support_directory", plugger_data_directory)) | ||
Log.Debug("{}: {}".format("plugin_directory", plugin_directory)) | ||
|
||
Log.Debug('Initializing plugin installation process for "{}"'.format(plugin_data['plugin']['full_name'])) | ||
for k, v in plugin_data.items(): | ||
Log.Debug("{}: {}".format(k, v)) | ||
return True | ||
|
||
|
||
def uninstall_plugin(plugin_name): | ||
# type: (str) -> bool | ||
""" | ||
Uninstall a plugin. | ||
Parameters | ||
---------- | ||
plugin_name : str | ||
The name of the plugin to uninstall. | ||
Returns | ||
------- | ||
bool | ||
Whether or not the plugin was successfully uninstalled. | ||
""" | ||
Log.Debug("Uninstalling plugin: {}".format(plugin_name)) | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
"base_path": "." | ||
"base_url": "https://api.crowdin.com" # optional (for Crowdin Enterprise only) | ||
"preserve_hierarchy": false # flatten tree on crowdin | ||
"pull_request_labels": [ | ||
"crowdin", | ||
"l10n" | ||
] | ||
|
||
"files": [ | ||
{ | ||
"source": "/Contents/Strings/*.po", | ||
"translation": "/Contents/Strings/%two_letters_code%/LC_MESSAGES/%original_file_name%", | ||
"languages_mapping": { | ||
"two_letters_code": { | ||
# map non-two letter codes here, left side is crowdin designation, right side is babel designation | ||
"en-GB": "en_GB", | ||
"en-US": "en_US" | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.