The branch, frodo has been updated
via 6932571b37c2927de08e1fc84ebdb07d88ce913f (commit)
from 0d6437ebdef3a567c32a9342da34891fbce4976f (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=6932571b37c2927de08e1fc84ebdb07d88ce913f
commit 6932571b37c2927de08e1fc84ebdb07d88ce913f
Author: Martijn Kaijser <[email protected]>
Date: Tue Nov 26 08:36:48 2013 +0100
[script.randomtrailers] 1.0.6
diff --git a/script.randomtrailers/addon.xml b/script.randomtrailers/addon.xml
index 693ce74..e4cc6c1 100644
--- a/script.randomtrailers/addon.xml
+++ b/script.randomtrailers/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.randomtrailers"
name="Random Trailers"
- version="1.0.5"
+ version="1.0.6"
provider-name="kzeleny">
<requires>
<import addon="xbmc.python"
version="2.1.0"/>
diff --git a/script.randomtrailers/changelog.txt
b/script.randomtrailers/changelog.txt
index d7583df..766ec8c 100644
--- a/script.randomtrailers/changelog.txt
+++ b/script.randomtrailers/changelog.txt
@@ -1,3 +1,10 @@
+v1.0.6 (June 14, 2013) :
+ - added arrow controls for remotes without keyboards
+ UP = show info
+ DOWN = hide info
+ RIGHT = next trailer
+ LEFT = exit trailers
+
v1.0.5 (June 12, 2013) :
- fixed module import issues. fixed font issues
diff --git a/script.randomtrailers/default.py b/script.randomtrailers/default.py
index 59d6e73..a2f1781 100644
--- a/script.randomtrailers/default.py
+++ b/script.randomtrailers/default.py
@@ -1,7 +1,7 @@
# Random trailer player
#
# Author - kzeleny
-# Version - 1.0.4
+# Version - 1.0.6
# Compatibility - Frodo
#
@@ -127,14 +127,23 @@ class movieWindow(xbmcgui.WindowXMLDialog):
ACTION_PREVIOUS_MENU = 10
ACTION_ENTER = 7
ACTION_I = 11
- #xbmc.log('action =' + str(action.getId()))
+ ACTION_LEFT = 1
+ ACTION_RIGHT = 2
+ ACTION_UP = 3
+ ACTION_DOWN = 4
+
+ xbmc.log('action =' + str(action.getId()))
+
global exit_requested
global movie_file
- if action == ACTION_PREVIOUS_MENU:
+ if action == ACTION_PREVIOUS_MENU or action == ACTION_LEFT:
xbmc.Player().stop()
exit_requested = True
self.close()
+ if action == ACTION_RIGHT:
+ xbmc.Player().stop()
+
if action == ACTION_ENTER:
exit_requested = True
xbmc.Player().stop()
@@ -142,7 +151,7 @@ class movieWindow(xbmcgui.WindowXMLDialog):
self.getControl(30011).setVisible(False)
self.close()
- if action == ACTION_I:
+ if action == ACTION_I or action == ACTION_UP:
self.getControl(30011).setVisible(False)
w=infoWindow('script-DialogVideoInfo.xml',addon_path,'default')
w.doModal()
@@ -214,21 +223,28 @@ class infoWindow(xbmcgui.WindowXMLDialog):
ACTION_PREVIOUS_MENU = 10
ACTION_ENTER = 7
ACTION_I = 11
+ ACTION_LEFT = 1
+ ACTION_RIGHT = 2
+ ACTION_UP = 3
+ ACTION_DOWN = 4
#xbmc.log('action =' + str(action.getId()))
- if action == ACTION_PREVIOUS_MENU:
- global do_timeout
- global exit_requested
+ global do_timeout
+ global exit_requested
+ global movie_file
+ if action == ACTION_PREVIOUS_MENU or action == ACTION_LEFT:
do_timeout=False
xbmc.Player().stop()
exit_requested=True
self.close()
- if action == ACTION_I:
+ if action == ACTION_I or action == ACTION_DOWN:
+ self.close()
+
+ if action == ACTION_RIGHT:
+ xbmc.Player().stop()
self.close()
if action == ACTION_ENTER:
- global movie_file
- global exit_requested
movie_file = trailer["file"]
xbmc.Player().stop()
exit_requested=True
-----------------------------------------------------------------------
Summary of changes:
script.randomtrailers/addon.xml | 2 +-
script.randomtrailers/changelog.txt | 7 ++++++
script.randomtrailers/default.py | 36 +++++++++++++++++++++++++---------
3 files changed, 34 insertions(+), 11 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons