def GetTitleFromFile(title):
# Imprime en el log lo que va a descartar
logger.info("streamondemand-pureita.core.downloadtools GetTitleFromFile: titulo="+title )
#logger.info("streamondemand-pureita.core.downloadtools downloadtitle: title="+urllib.quote_plus( title ))
plataforma = config.get_system_platform();
logger.info("streamondemand-pureita.core.downloadtools GetTitleFromFile: plataforma="+plataforma)
#nombrefichero = xbmc.makeLegalFilename(title + url[-4:])
if plataforma=="xbox":
nombrefichero = title[:38] + title[-4:]
nombrefichero = limpia_nombre_excepto_1(nombrefichero)
else:
nombrefichero = title
return nombrefichero
downloadtools.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录