-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
0 parents
commit 67cf51c
Showing
36 changed files
with
6,233 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
custom: https://www.paypal.me/sualfred |
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,4 @@ | ||
|
||
*.pyo | ||
|
||
*.pyc |
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,3 @@ | ||
## Embuary Helper Script | ||
|
||
For more information please [visit the wiki](https://github.com/sualfred/script.embuary.helper/wiki) |
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,26 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<addon id="script.embuary.helper" name="Embuary Helper" version="2.0.2" provider-name="sualfred"> | ||
<requires> | ||
<import addon="xbmc.python" version="3.0.0"/> | ||
<import addon="script.module.pil" version="1.1.7"/> | ||
</requires> | ||
<extension point="xbmc.python.script" library="default.py"> | ||
<provides>executable</provides> | ||
</extension> | ||
<extension point="xbmc.python.pluginsource" library="plugin.py"> | ||
<provides>video</provides> | ||
</extension> | ||
<extension point="xbmc.service" library="service.py" /> | ||
<extension point="xbmc.addon.metadata"> | ||
<summary lang="en_GB">Embuary Helper Script</summary> | ||
<description lang="en_GB">Helper script to provide features and functions to the Embuary skin. A full documentation can be found on GitHub: https://github.com/sualfred/script.embuary.helper/wiki</description> | ||
<platform>all</platform> | ||
<license>GPL-2.0-only</license> | ||
<forum>https://forum.kodi.tv/showthread.php?tid=345318</forum> | ||
<source>https://github.com/sualfred/script.embuary.helper</source> | ||
<assets> | ||
<icon>resources/icon.png</icon> | ||
<fanart>resources/fanart.jpg</fanart> | ||
</assets> | ||
</extension> | ||
</addon> |
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,43 @@ | ||
#!/usr/bin/python | ||
|
||
######################## | ||
|
||
import xbmcgui | ||
|
||
from resources.lib.helper import * | ||
from resources.lib.utils import * | ||
from resources.lib.cinema_mode import * | ||
|
||
######################## | ||
|
||
class Main: | ||
def __init__(self): | ||
self.action = False | ||
self._parse_argv() | ||
|
||
if self.action: | ||
self.getactions() | ||
else: | ||
DIALOG.ok(ADDON.getLocalizedString(32000), ADDON.getLocalizedString(32001)) | ||
|
||
def _parse_argv(self): | ||
args = sys.argv | ||
|
||
for arg in args: | ||
if arg == ADDON_ID: | ||
continue | ||
if arg.startswith('action='): | ||
self.action = arg[7:].lower() | ||
else: | ||
try: | ||
self.params[arg.split("=")[0].lower()] = "=".join(arg.split("=")[1:]).strip() | ||
except: | ||
self.params = {} | ||
|
||
def getactions(self): | ||
util = globals()[self.action] | ||
util(self.params) | ||
|
||
|
||
if __name__ == '__main__': | ||
Main() |
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,70 @@ | ||
#!/usr/bin/python | ||
|
||
######################## | ||
|
||
import xbmcplugin | ||
import urllib.parse as urlparse | ||
|
||
from resources.lib.helper import * | ||
from resources.lib.plugin_listing import * | ||
from resources.lib.plugin_content import * | ||
from resources.lib.plugin_actions import * | ||
|
||
######################## | ||
|
||
class Main: | ||
def __init__(self): | ||
self._parse_argv() | ||
self.info = self.params.get('info') | ||
self.action = self.params.get('action') | ||
if self.info: | ||
self.getinfos() | ||
elif self.action: | ||
self.actions() | ||
else: | ||
self.listing() | ||
|
||
def _parse_argv(self): | ||
base_url = sys.argv[0] | ||
path = sys.argv[2] | ||
|
||
try: | ||
args = path[1:] | ||
self.params = dict(urlparse.parse_qsl(args)) | ||
|
||
''' workaround to get the correct values for titles with special characters | ||
''' | ||
if ('title=\'\"' and '\"\'') in args: | ||
start_pos=args.find('title=\'\"') | ||
end_pos=args.find('\"\'') | ||
clean_title = args[start_pos+8:end_pos] | ||
self.params['title'] = clean_title | ||
|
||
except Exception: | ||
self.params = {} | ||
|
||
def listing(self): | ||
li = list() | ||
PluginListing(self.params,li) | ||
self._additems(li) | ||
|
||
def getinfos(self): | ||
li = list() | ||
plugin = PluginContent(self.params,li) | ||
self._execute(plugin,self.info) | ||
self._additems(li) | ||
|
||
def actions(self): | ||
plugin = PluginActions(self.params) | ||
self._execute(plugin,self.action) | ||
|
||
def _execute(self,plugin,action): | ||
getattr(plugin,action.lower())() | ||
|
||
def _additems(self,li): | ||
xbmcplugin.addDirectoryItems(int(sys.argv[1]), li) | ||
xbmcplugin.endOfDirectory(handle=int(sys.argv[1])) | ||
|
||
|
||
if __name__ == '__main__': | ||
Main() |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,205 @@ | ||
# Embuary Helper language file | ||
# Addon Name: Embuary Helper | ||
# Addon id: script.embuary.helper | ||
# Addon Provider: sualfred | ||
# Translators: | ||
# sualfred <[email protected]>, 2019 | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Embuary Helper\n" | ||
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"PO-Revision-Date: 2019-10-06 17:40+0000\n" | ||
"Last-Translator: sualfred <[email protected]>, 2019\n" | ||
"Language-Team: German (Germany) (https://www.transifex.com/sualfred/teams/80018/de_DE/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Language: de_DE\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
msgctxt "#32000" | ||
msgid "Error" | ||
msgstr "Fehler" | ||
|
||
msgctxt "#32001" | ||
msgid "" | ||
"This is a tool to provide features to a skin and requires skin integration." | ||
msgstr "" | ||
"Dieses Tool stellt Features für Skins bereit und eine benötigt Skin-" | ||
"Integration." | ||
|
||
msgctxt "#32002" | ||
msgid "Enable logging" | ||
msgstr "Aktiviere Logging" | ||
|
||
msgctxt "#32004" | ||
msgid "detected" | ||
msgstr "erkannt" | ||
|
||
msgctxt "#32005" | ||
msgid "Changed font to" | ||
msgstr "Wechsle Schriftart zu" | ||
|
||
#: /resources/settings.xml | ||
msgctxt "#32003" | ||
msgid "Delete add-on image cache" | ||
msgstr "Add-on Image Cache löschen" | ||
|
||
msgctxt "#32006" | ||
msgid "Applying changes" | ||
msgstr "Änderungen werden übernommen" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32007" | ||
msgid "Suggestions based on random watched item" | ||
msgstr "Vorschläge basierend auf zufälligen gesehenen Video" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32008" | ||
msgid "Next up" | ||
msgstr "Als nächstes" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32009" | ||
msgid "Suggestions by random genre" | ||
msgstr "Vorschläge basierend auf zufälligen Genre" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32010" | ||
msgid "Recently added episodes and shows" | ||
msgstr "Kürzlich hinzugefügte Episoden und Serien" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32011" | ||
msgid "All media" | ||
msgstr "Alle Medien" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32012" | ||
msgid "Recommended by rating" | ||
msgstr "Empfohlen nach Bewertung" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32013" | ||
msgid "Continue watching" | ||
msgstr "Weiterschauen" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32014" | ||
msgid "Suggestions based on the last watched item" | ||
msgstr "Vorschläge basierend auf dem zuletzt gesehenen Video" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32015" | ||
msgid "Recently added unwatched episodes and shows" | ||
msgstr "Kürzlich hinzugefügte ungesehene Episoden und Serien" | ||
|
||
#: /resources/settings.xml | ||
msgctxt "#32016" | ||
msgid "Enable service module" | ||
msgstr "Aktiviere Servicemodul" | ||
|
||
#: /resources/settings.xml | ||
msgctxt "#32017" | ||
msgid "Service interval time" | ||
msgstr "Service Zeitintervall" | ||
|
||
#: /resources/settings.xml | ||
msgctxt "#32018" | ||
msgid "Default blurring radius" | ||
msgstr "Standard Radius des Weichzeichners" | ||
|
||
#: /resources/settings.xml | ||
msgctxt "#32020" | ||
msgid "Misc." | ||
msgstr "Sonstiges" | ||
|
||
#: /resources/settings.xml | ||
msgctxt "#32021" | ||
msgid "Background change interval" | ||
msgstr "Hintergrund-Wechselintervall" | ||
|
||
#: /resources/lib/utils.py | ||
msgctxt "#32019" | ||
msgid "" | ||
"This will delete all created images (blurred backgrounds, genre thumbs, " | ||
"etc.) in the addon_data folder. Do you want to proceed?" | ||
msgstr "" | ||
"Dies löscht alle erstellen Bilder (weich gezeichnete Hintergründe, Genre " | ||
"Vorschaubilder, usw.) im addon_data Ordner. Fortfahren?" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32022" | ||
msgid "All available database items" | ||
msgstr "Alle Datenbankeinträge" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32023" | ||
msgid "items" | ||
msgstr "Inhalte" | ||
|
||
#: /resources/lib/utils.py | ||
msgctxt "#32024" | ||
msgid "The video database has no library tags stored." | ||
msgstr "Deine Videodatenbank enthält keine Tags." | ||
|
||
#: /resources/lib/utils.py | ||
msgctxt "#32025" | ||
msgid "Attention" | ||
msgstr "Achtung" | ||
|
||
#: /resources/lib/utils.py | ||
msgctxt "#32026" | ||
msgid "Enable library tag detection for" | ||
msgstr "Aktiviere Tag-Erkennung für" | ||
|
||
#: /addon.xml | ||
msgctxt "#32027" | ||
msgid "Add/remove movie favourite" | ||
msgstr "Film-Favorit hinzufügen/entfernen" | ||
|
||
#: /addon.xml | ||
msgctxt "#32028" | ||
msgid "Add/remove TV show favourite" | ||
msgstr "Serien-Favorit hinzufügen/entfernen" | ||
|
||
#: /resources/lib/plugin_content.py | ||
msgctxt "#32029" | ||
msgid "Directed by" | ||
msgstr "Unter der Regie von" | ||
|
||
#: /resources/lib/plugin_content.py | ||
msgctxt "#32030" | ||
msgid "Items starring" | ||
msgstr "Einträge mit" | ||
|
||
#: /resources/lib/plugin_content.py | ||
msgctxt "#32031" | ||
msgid "Because you watched" | ||
msgstr "Ähnliche Titel wie" | ||
|
||
#: /resources/lib/plugin_content.py | ||
msgctxt "#32032" | ||
msgid "Christmas holiday season" | ||
msgstr "Weihnachtszeit" | ||
|
||
#: /resources/lib/plugin_content.py | ||
msgctxt "#32033" | ||
msgid "Spooky suggestions" | ||
msgstr "Gruselige Vorschläge" | ||
|
||
#: /resources/lib/plugin_content.py | ||
msgctxt "#32034" | ||
msgid "May the force be with you" | ||
msgstr "Möge die Macht mit dir sein" | ||
|
||
#: /resources/lib/plugin_content.py | ||
msgctxt "#32035" | ||
msgid "Live long and prosper" | ||
msgstr "Lebe lang und in Frieden" | ||
|
||
#: /resources/lib/plugin_listing.py | ||
msgctxt "#32036" | ||
msgid "Special and seasonal widgets" | ||
msgstr "Spezielle und saisonale Widgets" |
Oops, something went wrong.