except: pass pDialog.close() print 'Update Repo' xbmc.executebuiltin("UpdateAddonRepos") from addon import Addon addon_id = 'script.icechannel' try: addon = Addon(addon_id, sys.argv) except: addon = Addon(addon_id) addon_path = addon.get_path() lib_path = os.path.join(addon_path, 'lib', 'entertainment') plugins_path = os.path.join(lib_path, 'plugins') settings_file = os.path.join(addon_path, 'resources', 'settings.xml') plugin_dirs = [plugins_path] from glob import glob plugin_dirs.extend( glob( os.path.join( os.path.dirname(addon_path), addon_id + '.extn.*', 'plugins' ) ) ) plugins_dict = {} plugin_dirs_dict = {} filecodes = ['_xstrc','_xstrs','_tls','_prx','_wpx','_hrv','_prv','_chr','_lrv','_ffm','_cst','_ist','_lsi','_mvi','_tvi','_ltvi','_lspi','_mvs','_tvs','_ltvs','_lsps']
''' Ice Channel ''' import os import sys from addon import Addon addon_id = 'script.icechannel' try: addon = Addon(addon_id, sys.argv) except: addon = Addon(addon_id) addon_path = addon.get_path() addon_version = addon.get_version() lib_path = os.path.join(addon_path, 'lib', 'entertainment') plugins_path = os.path.join(lib_path, 'plugins') settings_file = os.path.join(addon_path, 'resources', 'settings.xml') profile_path = addon.get_profile() theme_name = addon.get_setting('theme') theme_type = addon.get_setting(theme_name + '_themetype') if theme_type == 'online': icon_path = addon.get_setting(theme_name + '_themeurl') else: theme_addon = Addon(addon.get_setting(theme_name + '_themeaddon')) icon_path = os.path.join(theme_addon.get_path(), 'theme')
''' Ice Channel ''' import os import sys from addon import Addon addon_id = 'script.icechannel' try: addon = Addon(addon_id, sys.argv) except: addon = Addon(addon_id) addon_path = addon.get_path() addon_version = addon.get_version() lib_path = os.path.join(addon_path, 'lib', 'entertainment') plugins_path = os.path.join(lib_path, 'plugins') settings_file = os.path.join(addon_path, 'resources', 'settings.xml') profile_path = addon.get_profile() theme_name = addon.get_setting('theme') theme_type = addon.get_setting(theme_name+'_themetype') if theme_type == 'online': icon_path = addon.get_setting(theme_name+'_themeurl') else: theme_addon = Addon( addon.get_setting(theme_name+'_themeaddon') ) icon_path = os.path.join(theme_addon.get_path(), 'theme')
''' common XBMC Module Copyright (C) 2011 t0mm0 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ''' from addon import Addon addon = Addon('script.module.addon.common') addon_path = addon.get_path() addon_version = addon.get_version()