Add files via upload

This commit is contained in:
Alex
2018-05-27 19:53:55 +02:00
committed by GitHub
parent ecef0bd435
commit 3fe4f99e40
2 changed files with 29 additions and 2 deletions

View File

@@ -70,11 +70,33 @@
"Toda la videoteca"
]
},
{
"id": "addition",
"type": "label",
"label": "Añadir a la videoteca",
"enabled": true,
"visible": true
},
{
"id": "enable_filter",
"type": "bool",
"label": " Excluir los streams que contienen etiquetas específicas",
"enabled": true,
"visible": true,
"default": false
},
{
"id": "filters",
"type": "text",
"label": " Etiquetas",
"visible": true,
"enabled": "eq(-1,true)"
},
{
"id": "window_type",
"type": "list",
"label": "Mostrar los enlaces en",
"default": 0,
"default": 1,
"enabled": true,
"visible": true,
"lvalues": [

View File

@@ -596,7 +596,12 @@ def mark_tvshow_as_updatable(item):
def delete(item):
def delete_all(_item):
filetools.rmdirtree(_item.path)
for file in filetools.listdir(_item.path):
if file.endswith(".strm") or file.endswith(".nfo") or file.endswith(".json"):
filetools.remove(filetools.join(_item.path, file))
raiz, carpeta_serie, ficheros = filetools.walk(_item.path).next()
if ficheros == []:
filetools.rmdir(_item.path)
if config.is_xbmc():
import xbmc