Created
December 18, 2019 21:49
-
-
Save henryjfry/ef0d6b47ea03e89dd7b9a0d2d4e99fdc to your computer and use it in GitHub Desktop.
script.extendedinfo/resources/lib/DialogEpisodeInfo.py MODAL
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_episode(self): | |
| Utils.show_busy() | |
| url = 'plugin://plugin.video.openmeta/tv/play/%s/%s/%s' % (Utils.fetch(TheMovieDB.get_tvshow_ids(self.tvshow_id), 'tvdb_id'), self.info['season'], self.info['episode']) | |
| Utils.hide_busy() | |
| xbmc.executebuiltin('RunPlugin(%s)' % url) | |
| # if self.dbid and int(self.dbid) > 0: | |
| # dbid = self.dbid | |
| # url = '' | |
| # PLAYER.play(url, listitem=None, window=self, type='episodeid', dbid=dbid) | |
| # else: | |
| # url = 'plugin://plugin.video.openmeta/tv/play/%s/%s/%s' % (Utils.fetch(TheMovieDB.get_tvshow_ids(self.tvshow_id), 'tvdb_id'), self.info['season'], self.info['episode']) | |
| # xbmc.executebuiltin('RunPlugin(%s)' % url) | |
| for i in range(30): | |
| if xbmc.getCondVisibility('VideoPlayer.IsFullscreen'): | |
| if self and self.window_type == 'dialog': | |
| wm.add_to_stack(self) | |
| self.close() | |
| PLAYER.wait_for_video_end() | |
| return wm.pop_stack() | |
| xbmc.sleep(1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment