def handle_tv_show_episode_selected(window, control_id): logging.getLogger().debug('handle tv show episode selection... ') list_control = window.getControl(control_id) item = list_control.getSelectedItem() req_attrib_map = {} if item is not None: logging.getLogger().debug( 'handle tv show episode selected : %s : with page = %s' % (item.getProperty('tv-show-name'), item.getProperty('tv-show-page'))) req_attrib_map['channel-type'] = item.getProperty('channel-type') req_attrib_map['channel-name'] = item.getProperty('channel-name') req_attrib_map['tv-show-name'] = item.getProperty('tv-show-name') req_attrib_map['tv-show-url'] = item.getProperty('tv-show-url') req_attrib_map['tv-show-page'] = item.getProperty('tv-show-page') req_attrib_map['episode-name'] = item.getProperty('episode-name') req_attrib_map['episode-url'] = item.getProperty('episode-url') window.getControl(600).setVisible(False) # window.getControl(500).setVisible(True) # window.getControl(501).setLabel('LOADING VIDEOS FOR [B]' + req_attrib_map['episode-name'] + '[/B]...') notification = "XBMC.Notification(%s,%s,%s,%s)" % ( req_attrib_map['tv-show-name'] + ' - ' + req_attrib_map['episode-name'], 'LOADING VIDEOS... ', 2500, 'icon.png') xbmc.executebuiltin(notification) system.show_busy_dialog() logging.getLogger().debug( 'Channel name in handle_tv_show_episode_selected = %s' % req_attrib_map['channel-name']) return req_attrib_map
def handle_tv_show_episode_video_selected(window, control_id): logging.getLogger().debug('handle tv show episode video selection... ') list_control = window.getControl(control_id) item = list_control.getSelectedItem() req_attrib_map = {} if item is not None: logging.getLogger().debug('handle tv show episode video source : %s : and continuous play item = %s' % (item.getProperty('videoSourceName'), item.getProperty('isContinuousPlayItem'))) req_attrib_map['video-source-name'] = item.getProperty('videoSourceName') req_attrib_map['is-playlist'] = item.getProperty('isContinuousPlayItem') if req_attrib_map['is-playlist'] == 'true': req_attrib_map['videos'] = item.getProperty('videosList') else: req_attrib_map['video-link'] = item.getProperty('videoLink') req_attrib_map['video-title'] = item.getProperty('videoTitle') window.getControl(600).setVisible(False) # window.getControl(500).setVisible(True) # window.getControl(501).setLabel('LOADING VIDEOS FROM [B]' + req_attrib_map['video-source-name'] + '[/B]...') notification = "XBMC.Notification(%s,%s,%s,%s)" % (req_attrib_map['video-source-name'], 'LOADING VIDEOS... ', 2500, 'icon.png') xbmc.executebuiltin(notification) system.show_busy_dialog() req_attrib_map['progress_control'] = window.getControl(502) return req_attrib_map
def handle_tv_show_selected(window, control_id): logging.getLogger().debug('handle tv show selection... ') list_control = window.getControl(control_id) item = list_control.getSelectedItem() req_attrib_map = {} if item is not None: logging.getLogger().debug('handle tv show selected : %s ' % item.getProperty('tv-show-name')) req_attrib_map['channel-type'] = item.getProperty('channel-type') req_attrib_map['channel-name'] = item.getProperty('channel-name') req_attrib_map['tv-show-name'] = item.getProperty('tv-show-name') req_attrib_map['tv-show-url'] = item.getProperty('tv-show-url') window.getControl(305).setEnabled(False) # window.getControl(500).setVisible(True) # window.getControl(501).setLabel('LOADING EPISODES FOR [B]' + req_attrib_map['tv-show-name'] + '[/B]...') notification = "XBMC.Notification(%s,%s,%s,%s)" % ( req_attrib_map['tv-show-name'], 'LOADING EPISODES... ', 2500, 'icon.png') xbmc.executebuiltin(notification) system.show_busy_dialog() return req_attrib_map
def handle_tv_show_episode_selected(window, control_id): logging.getLogger().debug('handle tv show episode selection... ') list_control = window.getControl(control_id) item = list_control.getSelectedItem() req_attrib_map = {} if item is not None: logging.getLogger().debug('handle tv show episode selected : %s : with page = %s' % (item.getProperty('tv-show-name'), item.getProperty('tv-show-page'))) req_attrib_map['channel-type'] = item.getProperty('channel-type') req_attrib_map['channel-name'] = item.getProperty('channel-name') req_attrib_map['tv-show-name'] = item.getProperty('tv-show-name') req_attrib_map['tv-show-url'] = item.getProperty('tv-show-url') req_attrib_map['tv-show-page'] = item.getProperty('tv-show-page') req_attrib_map['episode-name'] = item.getProperty('episode-name') req_attrib_map['episode-url'] = item.getProperty('episode-url') window.getControl(600).setVisible(False) # window.getControl(500).setVisible(True) # window.getControl(501).setLabel('LOADING VIDEOS FOR [B]' + req_attrib_map['episode-name'] + '[/B]...') notification = "XBMC.Notification(%s,%s,%s,%s)" % (req_attrib_map['tv-show-name']+ ' - ' + req_attrib_map['episode-name'], 'LOADING VIDEOS... ', 2500, 'icon.png') xbmc.executebuiltin(notification) system.show_busy_dialog() logging.getLogger().debug('Channel name in handle_tv_show_episode_selected = %s' % req_attrib_map['channel-name']) return req_attrib_map
def __initialize__(self, addon_id, conf={'webServiceEnabled':False}): system.show_busy_dialog() self._addon_id = addon_id self._addon = system.get_addon(addon_id) self._addon_ver = self._addon.getAddonInfo('version') self._addon_path = self._addon.getAddonInfo('path') self._addon_profile_path = self._addon.getAddonInfo('profile') self._configurations = conf self._current_addon = None self._current_addon_id = None self._service_publisher = None logging.getLogger().debug('context to be initialized...') self._xoze_context = XozeContext(self.get_conf('contextFiles'), self.get_addon(), self.get_addon_path(), self.get_addon_data_path()) logging.getLogger().debug('snapvideo to be initialized...') SnapVideo(context=self) # To initialize logging.getLogger().debug('web services to be initialized...') self._start_services()
def handle_favorite_tv_show_selected(window, control_id): logging.getLogger().debug('handle favorite tv show selection... ') list_control = window.getControl(control_id) item = list_control.getSelectedItem() req_attrib_map = {} if item is not None: logging.getLogger().debug('handle tv show selected : %s ' % item.getProperty('tv-show-name')) req_attrib_map['channel-type'] = item.getProperty('channel-type') req_attrib_map['channel-name'] = item.getProperty('channel-name') req_attrib_map['tv-show-name'] = item.getProperty('tv-show-name') req_attrib_map['tv-show-url'] = item.getProperty('tv-show-url') notification = "XBMC.Notification(%s,%s,%s,%s)" % (req_attrib_map['tv-show-name'], 'LOADING EPISODES... ', 2500, 'icon.png') xbmc.executebuiltin(notification) system.show_busy_dialog() # window.getControl(500).setVisible(True) # window.getControl(501).setLabel('LOADING EPISODES FOR [B]' + req_attrib_map['tv-show-name'] + '[/B]...') return req_attrib_map
def __initialize__(self, addon_id, conf={'webServiceEnabled': False}): system.show_busy_dialog() self._addon_id = addon_id self._addon = system.get_addon(addon_id) self._addon_ver = self._addon.getAddonInfo('version') self._addon_path = self._addon.getAddonInfo('path') self._addon_profile_path = self._addon.getAddonInfo('profile') self._configurations = conf self._current_addon = None self._current_addon_id = None self._service_publisher = None logging.getLogger().debug('context to be initialized...') self._xoze_context = XozeContext(self.get_conf('contextFiles'), self.get_addon(), self.get_addon_path(), self.get_addon_data_path()) logging.getLogger().debug('snapvideo to be initialized...') SnapVideo(context=self) # To initialize logging.getLogger().debug('web services to be initialized...') self._start_services()
def handle_tv_show_episode_video_selected(window, control_id): logging.getLogger().debug('handle tv show episode video selection... ') list_control = window.getControl(control_id) item = list_control.getSelectedItem() req_attrib_map = {} if item is not None: logging.getLogger().debug( 'handle tv show episode video source : %s : and continuous play item = %s' % (item.getProperty('videoSourceName'), item.getProperty('isContinuousPlayItem'))) req_attrib_map['video-source-name'] = item.getProperty( 'videoSourceName') req_attrib_map['is-playlist'] = item.getProperty( 'isContinuousPlayItem') if req_attrib_map['is-playlist'] == 'true': req_attrib_map['videos'] = item.getProperty('videosList') else: req_attrib_map['video-link'] = item.getProperty('videoLink') req_attrib_map['video-title'] = item.getProperty('videoTitle') window.getControl(600).setVisible(False) # window.getControl(500).setVisible(True) # window.getControl(501).setLabel('LOADING VIDEOS FROM [B]' + req_attrib_map['video-source-name'] + '[/B]...') notification = "XBMC.Notification(%s,%s,%s,%s)" % ( req_attrib_map['video-source-name'], 'LOADING VIDEOS... ', 2500, 'icon.png') xbmc.executebuiltin(notification) system.show_busy_dialog() req_attrib_map['progress_control'] = window.getControl(502) return req_attrib_map
def show_tv_channel_episodes_loading_view(modelMap, window): #window.getControl(500).setVisible(True) #window.getControl(501).setLabel('LOADING CONTENT FOR [B]' + modelMap['channel_name'] + '[/B]...') system.show_busy_dialog()