def mainlist(params,url,category): logger.info("[configuracion.py] mainlist") # Verifica ruta de descargas downloadpath = downloadtools.getDownloadPath() downloadlistpath = downloadtools.getDownloadListPath() config.openSettings( )
def mainlist(params, url, category): logger.info("[configuracion.py] mainlist") # Verifica ruta de descargas downloadpath = downloadtools.getDownloadPath() downloadlistpath = downloadtools.getDownloadListPath() config.openSettings()
def mainlist(params,url,category): xbmc.output("[configuracion.py] mainlist") # Verifica ruta de descargas downloadpath = downloadtools.getDownloadPath() downloadlistpath = downloadtools.getDownloadListPath() xbmcplugin.openSettings( sys.argv[ 0 ] )
def mainlist(params, url, category): xbmc.output("[configuracion.py] mainlist") # Verifica ruta de descargas downloadpath = downloadtools.getDownloadPath() downloadlistpath = downloadtools.getDownloadListPath() xbmcplugin.openSettings(sys.argv[0])
import shutil CHANNELNAME = "descargadoslist" # Esto permite su ejecución en modo emulado try: pluginhandle = int( sys.argv[ 1 ] ) except: pluginhandle = "" # Traza el inicio del canal xbmc.output("[descargadoslist.py] init") DEBUG = True DOWNLOAD_PATH = os.path.join( downloadtools.getDownloadListPath() ) IMAGES_PATH = xbmc.translatePath( os.path.join( os.getcwd(), 'resources' , 'images' ) ) ERROR_PATH = os.path.join( downloadtools.getDownloadListPath(), 'error' ) def mainlist(params,url,category): xbmc.output("[descargadoslist.py] mainlist") # Crea el directorio de la lista de descargas si no existe try: os.mkdir(DOWNLOAD_PATH) except: pass try: os.mkdir(ERROR_PATH) except: pass
import sys try: import xbmc import xbmcgui import xbmcplugin except: pass import downloadtools import config import logger import samba CHANNELNAME = "descargadoslist" DEBUG = True DOWNLOAD_PATH = os.path.join( downloadtools.getDownloadListPath() ) IMAGES_PATH = xbmc.translatePath( os.path.join( os.getcwd(), 'resources' , 'images' ) ) ERROR_PATH = os.path.join( downloadtools.getDownloadListPath(), 'error' ) usingsamba=DOWNLOAD_PATH.upper().startswith("SMB://") def mainlist(params,url,category): logger.info("[descargadoslist.py] mainlist") import xbmctools # Crea un listado con las entradas de la lista if usingsamba: ficheros = samba.get_files(DOWNLOAD_PATH) else: ficheros = os.listdir(DOWNLOAD_PATH)