# # List of objects representing removable media, e.g. CD-ROMs, # DVDs, etc. # REMOVABLE_MEDIA = [] if TV_CHANNELS == None and plugin.is_active("tv"): print print "Error TV_CHANNELS is not set! Removing TV plugin" print TV_CHANNELS = [] p = plugin.is_active("tv") plugin.remove(p[4]) # # compile the regexp # VIDEO_SHOW_REGEXP_MATCH = re.compile("^.*" + VIDEO_SHOW_REGEXP).match VIDEO_SHOW_REGEXP_SPLIT = re.compile("[\.\- ]*" + VIDEO_SHOW_REGEXP + "[\.\- ]*").split # # create cache subdirs # if not OVERLAY_DIR or OVERLAY_DIR == "/": print print "ERROR: bad OVERLAY_DIR." print "Set OVERLAY_DIR it to a directory on the local filesystem where Freevo"
# # List of objects representing removable media, e.g. CD-ROMs, # DVDs, etc. # REMOVABLE_MEDIA = [] if TV_CHANNELS == None and plugin.is_active('tv'): print print 'Error TV_CHANNELS is not set! Removing TV plugin' print TV_CHANNELS = [] p = plugin.is_active('tv') plugin.remove(p[4]) # # compile the regexp # VIDEO_SHOW_REGEXP_MATCH = re.compile("^.*" + VIDEO_SHOW_REGEXP).match VIDEO_SHOW_REGEXP_SPLIT = re.compile("[\.\- ]*" + VIDEO_SHOW_REGEXP + "[\.\- ]*").split # # create cache subdirs # if not OVERLAY_DIR or OVERLAY_DIR == '/': print print 'ERROR: bad OVERLAY_DIR.' print 'Set OVERLAY_DIR it to a directory on the local filesystem where Freevo'
# # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # ----------------------------------------------------------------------- import config import plugin #import logging #logger = logging.getLogger("freevo.skin.xbmc.config") # failsafe if config.SKIN_XML_FILE == 'xbmc': if plugin.is_active('audio.detachbar'): plugin.remove('audio.detachbar') if not plugin.is_active('audio.detachdialog'): plugin.activate('audio.detachdialog') # ====================================================================== # Freevo SKIN settings: # ====================================================================== # # Skin file that contains the actual skin code. This is imported # from skin.py # SKIN_MODULE = 'xbmc' # # XML file used for the dialog skins.
def cli_main(): if not os.path.exists(globals.zconf_home): print( colorprint( "ZConf directory not found. This could be the result of a botched installation/uninstallation - \nplease follow the installation instructions at https://github.com/varun-ramani/zconf to reinstall ZConf.", "red")) return if len(sys.argv) == 1: help.overview() if len(sys.argv) == 2: if sys.argv[1] == "help": help.overview() elif sys.argv[1] == "update": update.update() elif sys.argv[1] == "init": init.initialize() else: err_invalid_command(sys.argv[1]) if len(sys.argv) == 3: if sys.argv[1] == "help": help.command(sys.argv[2]) elif sys.argv[1] == "path": if sys.argv[2] == "view": path.view() else: err_invalid_command("path " + sys.argv[2]) elif sys.argv[1] == "alias": if sys.argv[2] == "view": alias.view() else: err_invalid_command("alias " + sys.argv[2]) elif sys.argv[1] == "plugin": if sys.argv[2] == "update": plugin.update() else: err_invalid_command("plugin " + sys.argv[2]) else: err_invalid_command(sys.argv[1]) if len(sys.argv) == 4: if sys.argv[1] == "path": if sys.argv[2] == "rm": path.remove_segment(sys.argv[3]) elif sys.argv[2] == "enable": path.enable_segment(sys.argv[3]) elif sys.argv[2] == "disable": path.disable_segment(sys.argv[3]) elif sys.argv[2] == "get": path.get_segment(sys.argv[3]) else: err_invalid_command("path " + sys.argv[2]) elif sys.argv[1] == "alias": if sys.argv[2] == "rm": alias.remove(sys.argv[3]) elif sys.argv[2] == "enable": alias.enable(sys.argv[3]) elif sys.argv[2] == "disable": alias.disable(sys.argv[3]) elif sys.argv[2] == "get": alias.get(sys.argv[3]) else: err_invalid_command("alias " + sys.argv[2]) elif sys.argv[1] == "plugin": if sys.argv[2] == "view": if sys.argv[3] == "all": plugin.view_all() elif sys.argv[3] == "local": plugin.view_local() elif sys.argv[3] == "remote": plugin.view_remote() else: err_invalid_command("plugin view " + sys.argv[3]) elif sys.argv[2] == "add": plugin.add(sys.argv[3]) elif sys.argv[2] == "rm": plugin.remove(sys.argv[3]) elif sys.argv[2] == "enable": plugin.enable(sys.argv[3]) elif sys.argv[2] == "disable": plugin.disable(sys.argv[3]) else: err_invalid_command("plugin " + sys.argv[2]) elif sys.argv[1] == "theme": if sys.argv[2] == "view": if sys.argv[3] == "all": theme.view_all() elif sys.argv[3] == "local": theme.view_local() elif sys.argv[3] == "remote": theme.view_remote() else: err_invalid_command("theme view " + sys.argv[3]) elif sys.argv[2] == "set": theme.set(sys.argv[3]) elif sys.argv[2] == "rm": theme.remove(sys.argv[3]) elif sys.argv[2] == "add": theme.add(sys.argv[3]) else: err_invalid_command("theme " + sys.argv[2]) else: err_invalid_command(sys.argv[1]) if len(sys.argv) == 5: if sys.argv[1] == "path": if sys.argv[2] == "set": path.set_segment(sys.argv[3], sys.argv[4]) else: err_invalid_command("path " + sys.argv[1]) elif sys.argv[1] == "alias": if sys.argv[2] == "set": alias.set(sys.argv[3], sys.argv[4]) else: err_invalid_command(sys.argv[1])