except: pass try: regexs = params["regexs"] except: pass utils.addon_log("Mode: " + str(mode)) if not url is None: utils.addon_log("URL: " + str(url)) utils.addon_log("Name: " + str(name)) #createNFO.setNamePath(STRM_LOC + "\\TV-Shows(de)", 'The Walking Dead', STRM_LOC) if mode == None: utils.addon_log("getSources") guiTools.getSources() try: xbmcplugin.endOfDirectory(int(sys.argv[1])) except: pass if not fileSys.writeTutList("select:PluginType"): tutWin = [ "Adding content to your library", "Welcome, this is your first time using OSMOSIS. Here, you can select the content type you want to add: ", "Video Plugins: Select to add Movies,TV-Shows, YouTube Videos ", "Music Plugins: Select to add Music" ] dialoge.PopupWindow(tutWin) elif mode == 1: create.fillPlugins(url)
except: pass try: regexs = params["regexs"] except: pass utils.addon_log("Mode: " + str(mode)) if not url is None: utils.addon_log("URL: " + str(url)) #.encode('utf-8'))) utils.addon_log("Name: " + str(name)) #createNFO.setNamePath(STRM_LOC + "\\TV-Shows(de)", 'The Walking Dead', STRM_LOC) if mode == None: utils.addon_log("getSources") guiTools.getSources() try: xbmcplugin.endOfDirectory(int(sys.argv[1])) except: pass elif mode == 1: create.fillPlugins(url) try: xbmcplugin.endOfDirectory(int(sys.argv[1])) except: pass elif mode == 2: create.fillPluginItems(url) try: xbmcplugin.endOfDirectory(int(sys.argv[1])) except: