Skip to content

Commit bfbd51b

Browse files
committed
Remove userinput.exe from the main addon package
1 parent 96fce73 commit bfbd51b

File tree

8 files changed

+39
-0
lines changed

8 files changed

+39
-0
lines changed

plugin.video.amazon-test/resources/language/resource.language.de_de/strings.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,3 +576,11 @@ msgstr "Lade Seite {0}…"
576576
msgctxt "#30253"
577577
msgid "{0} seasons"
578578
msgstr "{0} Staffeln"
579+
580+
msgctxt "#30254"
581+
msgid "userinput.exe not found"
582+
msgstr ""
583+
584+
msgctxt "#30255"
585+
msgid "Please download it from GitHub and manually install it in the addon directory"
586+
msgstr ""

plugin.video.amazon-test/resources/language/resource.language.en_gb/strings.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,3 +616,11 @@ msgstr ""
616616
msgctxt "#30253"
617617
msgid "{0} seasons"
618618
msgstr ""
619+
620+
msgctxt "#30254"
621+
msgid "userinput.exe not found"
622+
msgstr ""
623+
624+
msgctxt "#30255"
625+
msgid "Please download it from GitHub and manually install it in the addon directory"
626+
msgstr ""

plugin.video.amazon-test/resources/lib/playback.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ def _Input(mousex=0, mousey=0, click=0, keys=None, delay='200'):
5454

5555
if g.platform & g.OS_WINDOWS:
5656
app = os.path.join(g.PLUGIN_PATH, 'tools', 'userinput.exe')
57+
if not os.path.exists(app):
58+
from .l10n import getString
59+
g.dialog.notification(getString(30254), getString(30255), xbmcgui.NOTIFICATION_ERROR)
60+
return
5761
mouse = ' mouse %s %s' % (mousex, mousey)
5862
mclk = ' ' + str(click)
5963
keybd = ' key %s %s' % (keys, delay)
-744 KB
Binary file not shown.

plugin.video.amazon/resources/language/English/strings.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,3 +814,11 @@ msgstr ""
814814
msgctxt "#30226"
815815
msgid "Server settings or advancedsettings.xml not found"
816816
msgstr ""
817+
818+
msgctxt "#30227"
819+
msgid "userinput.exe not found"
820+
msgstr ""
821+
822+
msgctxt "#30228"
823+
msgid "Please download it from GitHub and manually install it in the addon directory"
824+
msgstr ""

plugin.video.amazon/resources/language/German/strings.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,3 +788,11 @@ msgstr "Benutzername oder Passwort falsch"
788788
msgctxt "#30226"
789789
msgid "Server settings or advancedsettings.xml not found"
790790
msgstr "Serverkonfiguration oder advancedsettings.xml nicht gefunden"
791+
792+
msgctxt "#30227"
793+
msgid "userinput.exe not found"
794+
msgstr ""
795+
796+
msgctxt "#30228"
797+
msgid "Please download it from GitHub and manually install it in the addon directory"
798+
msgstr ""

plugin.video.amazon/resources/lib/play.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,9 @@ def Input(mousex=0, mousey=0, click=0, keys=None, delay='200'):
619619

620620
if platform & OS_WINDOWS:
621621
app = os.path.join(pluginpath, 'tools', 'userinput.exe')
622+
if not os.path.exists(app):
623+
Dialog.notification(getString(30227), getString(30228), xbmcgui.NOTIFICATION_ERROR)
624+
return
622625
mouse = ' mouse {} {}'.format(mousex, mousey)
623626
mclk = ' ' + str(click)
624627
keybd = ' key {} {}'.format(keys, delay)
-744 KB
Binary file not shown.

0 commit comments

Comments
 (0)