Skip to content

Instantly share code, notes, and snippets.

@henryjfry
Created October 25, 2019 13:01
Show Gist options
  • Save henryjfry/f5a71c76699758ddca2447704886ffa6 to your computer and use it in GitHub Desktop.
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
@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