Created
October 25, 2019 13:01
-
-
Save henryjfry/f5a71c76699758ddca2447704886ffa6 to your computer and use it in GitHub Desktop.
~/.kodi/addons/script.extendedinfo/resources/lib/DialogVideoInfo.py => change movie play behaviour for speed + show_busy/hide_busy
This file contains hidden or 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
@ch.click(8) | |
def play_movie(self): | |
Utils.show_busy() | |
url = 'plugin://plugin.video.openmeta/movies/play/tmdb/%s' % self.info.get('id', '') | |
Utils.hide_busy() | |
xbmc.executebuiltin('RunPlugin(%s)' % url) | |
# if self.dbid and int(self.dbid) > 0: | |
# dbid = self.dbid | |
# url = '' | |
# PLAYER.play_from_button(url, listitem=None, window=self, type='movieid', dbid=dbid) | |
# else: | |
# url = 'plugin://plugin.video.openmeta/movies/play/tmdb/%s' % self.info.get('id', '') | |
# xbmc.executebuiltin('RunPlugin(%s)' % url) | |
@ch.action('contextmenu', 8) | |
def play_movie_choose_player(self): | |
Utils.show_busy() | |
url = 'plugin://plugin.video.openmeta/movies/play_choose_player/tmdb/%s/False' % self.info.get('id', '') | |
Utils.hide_busy() | |
xbmc.executebuiltin('RunPlugin(%s)' % url) | |
# if self.dbid and int(self.dbid) > 0: | |
# dbid = self.dbid | |
# url = '' | |
# PLAYER.play_from_button(url, listitem=None, window=self, type='movieid', dbid=dbid) | |
# else: | |
# url = 'plugin://plugin.video.openmeta/movies/play_choose_player/tmdb/%s/False' % self.info.get('id', '') | |
# xbmc.executebuiltin('RunPlugin(%s)' % url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment