2024-02-22, 12:24
I want to increase the user rating by pressing a button on my Fire TV remote when a movie is selected in the movie list of Kodi library.
I created a keymap.xml
and a script increase_rating.py
When I test this on my Windows PC it works as expected. When a movie is selected in the movie list Kodi shortly switches to the Info window, increases the user rating by 1 and then goes back to the movie list.
However, when I test this on my Fire TV Cube nothing happens. When I replace the "runscript(special://masterprofile/scripts/increase_rating.py)" in the xml file with the Kodi action "IncreaseRating" and manually switch to the info window the user rating is correctly increased by 1 when pressing the remote button. So it seems that running the script from the xml file does not work.
I read in older postings that Android does not allow to run executables from sdcard but do not know if this is the problem and if yes how I can overcome this restriction.
Any help would be very much appreciated.
I created a keymap.xml
keymap.xml:<keymap>
<global>
<keyboard>
<key id="61589">runscript(special://masterprofile/scripts/increase_rating.py)</key>
</keyboard>
</global>
</keymap>
and a script increase_rating.py
increase_rating.py:import xbmc
xbmc.executebuiltin("Action(Info)")
xbmc.executebuiltin("Action(IncreaseRating)")
xbmc.executebuiltin("Action(Info)")
When I test this on my Windows PC it works as expected. When a movie is selected in the movie list Kodi shortly switches to the Info window, increases the user rating by 1 and then goes back to the movie list.
However, when I test this on my Fire TV Cube nothing happens. When I replace the "runscript(special://masterprofile/scripts/increase_rating.py)" in the xml file with the Kodi action "IncreaseRating" and manually switch to the info window the user rating is correctly increased by 1 when pressing the remote button. So it seems that running the script from the xml file does not work.
I read in older postings that Android does not allow to run executables from sdcard but do not know if this is the problem and if yes how I can overcome this restriction.
Any help would be very much appreciated.