def List(): if utils.addon.getSetting("chaturbate") == "true": cleanchat(False) cleancam4(False) cleansoda(False) cleannaked(False) conn = sqlite3.connect(favoritesdb) conn.text_factory = str c = conn.cursor() try: c.execute("SELECT * FROM favorites") for (name, url, mode, img) in c.fetchall(): utils.addDownLink(name, url, int(mode), img, '', '', 'del') conn.close() xbmcplugin.endOfDirectory(utils.addon_handle) except: conn.close() utils.notify('No Favorites', 'No Favorites found') return
def List(): if utils.addon.getSetting("chaturbate") == "true": cleanchat(False) cleancam4(False) cleansoda(False) cleannaked(False) conn = sqlite3.connect(favoritesdb) conn.text_factory = str c = conn.cursor() try: c.execute("SELECT * FROM favorites") for (name, url, mode, img) in c.fetchall(): utils.addDownLink(name, url, int(mode), img, '', '', 'del') conn.close() xbmcplugin.endOfDirectory(utils.addon_handle) except: conn.close() utils.notify('No Favorites','No Favorites found') return