Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -267,8 +267,6 @@ def menu(item):
|
|||||||
|
|
||||||
|
|
||||||
def move_to_libray(item):
|
def move_to_libray(item):
|
||||||
logger.info('TITOLO= '+ item.title)
|
|
||||||
logger.info('TITOLO= '+ item.show)
|
|
||||||
if item.contentType == 'movie':
|
if item.contentType == 'movie':
|
||||||
FOLDER = FOLDER_MOVIES
|
FOLDER = FOLDER_MOVIES
|
||||||
path_title = "%s [%s]" % (item.contentTitle.strip(), item.infoLabels['IMDBNumber'])
|
path_title = "%s [%s]" % (item.contentTitle.strip(), item.infoLabels['IMDBNumber'])
|
||||||
@@ -306,15 +304,18 @@ def move_to_libray(item):
|
|||||||
for File in list_item:
|
for File in list_item:
|
||||||
filename = File.lower()
|
filename = File.lower()
|
||||||
name = name.lower()
|
name = name.lower()
|
||||||
if File.startswith(name) and (File.endswith('.strm') or File.endswith('.json') or File.endswith('.nfo')):
|
if filename.startswith(name) and (filename.endswith('.strm') or filename.endswith('.json') or filename.endswith('.nfo')):
|
||||||
logger.info('Elimino il File: ' + str(os.path.join(config.get_videolibrary_path(), FOLDER, path_title, File)))
|
clean = True
|
||||||
|
logger.info('Delete File: ' + str(os.path.join(config.get_videolibrary_path(), FOLDER, path_title, File)))
|
||||||
os.remove(os.path.join(config.get_videolibrary_path(), FOLDER, path_title, File))
|
os.remove(os.path.join(config.get_videolibrary_path(), FOLDER, path_title, File))
|
||||||
from platformcode import xbmc_videolibrary
|
from platformcode import xbmc_videolibrary
|
||||||
import xbmc
|
|
||||||
xbmc_videolibrary.update(FOLDER)
|
xbmc_videolibrary.update(FOLDER)
|
||||||
while xbmc.getCondVisibility('Library.IsScanningVideo()'):
|
if clean == True:
|
||||||
xbmc.sleep(500)
|
import xbmc
|
||||||
xbmc_videolibrary.clean()
|
while xbmc.getCondVisibility('Library.IsScanningVideo()'):
|
||||||
|
xbmc.sleep(500)
|
||||||
|
xbmc_videolibrary.clean()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user