Example #1
0
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 ] )
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