Fix Segna come visto
This commit is contained in:
@@ -67,9 +67,9 @@ def mark_auto_as_watched(item):
|
|||||||
time.sleep(30)
|
time.sleep(30)
|
||||||
|
|
||||||
# Sincronizacion silenciosa con Trakt
|
# Sincronizacion silenciosa con Trakt
|
||||||
if sync_with_trakt:
|
# if sync_with_trakt:
|
||||||
if config.get_setting("sync_trakt_watched", "videolibrary"):
|
# if config.get_setting("sync_trakt_watched", "videolibrary"):
|
||||||
sync_trakt_kodi()
|
# sync_trakt_kodi()
|
||||||
|
|
||||||
# logger.debug("Fin del hilo")
|
# logger.debug("Fin del hilo")
|
||||||
|
|
||||||
@@ -331,7 +331,7 @@ def mark_season_as_watched_on_kodi(item, value=1):
|
|||||||
execute_sql_kodi(sql)
|
execute_sql_kodi(sql)
|
||||||
|
|
||||||
|
|
||||||
def mark_content_as_watched_on_alfa(path):
|
def mark_content_as_watched_on_kod(path):
|
||||||
from specials import videolibrary
|
from specials import videolibrary
|
||||||
from core import videolibrarytools
|
from core import videolibrarytools
|
||||||
|
|
||||||
@@ -357,9 +357,9 @@ def mark_content_as_watched_on_alfa(path):
|
|||||||
path2 = ''
|
path2 = ''
|
||||||
if "special://" in VIDEOLIBRARY_PATH:
|
if "special://" in VIDEOLIBRARY_PATH:
|
||||||
if FOLDER_TVSHOWS in path:
|
if FOLDER_TVSHOWS in path:
|
||||||
path2 = re. sub(r'.*?%s' % FOLDER_TVSHOWS, VIDEOLIBRARY_PATH + "/" + FOLDER_TVSHOWS, path).replace("\\", "/")
|
path2 = re. sub(r'.*?%s' % FOLDER_TVSHOWS, filetools.join(VIDEOLIBRARY_PATH, FOLDER_TVSHOWS), path).replace("\\", "/")
|
||||||
if FOLDER_MOVIES in path:
|
if FOLDER_MOVIES in path:
|
||||||
path2 = re. sub(r'.*?%s' % FOLDER_MOVIES, VIDEOLIBRARY_PATH + "/" + FOLDER_MOVIES, path).replace("\\", "/")
|
path2 = re. sub(r'.*?%s' % FOLDER_MOVIES, filetools.join(VIDEOLIBRARY_PATH, FOLDER_MOVIES), path).replace("\\", "/")
|
||||||
|
|
||||||
if "\\" in path:
|
if "\\" in path:
|
||||||
path = path.replace("/", "\\")
|
path = path.replace("/", "\\")
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ def update(path, p_dialog, i, t, serie, overwrite):
|
|||||||
try:
|
try:
|
||||||
if config.is_xbmc(): #Si es Kodi, lo hacemos
|
if config.is_xbmc(): #Si es Kodi, lo hacemos
|
||||||
from platformcode import xbmc_videolibrary
|
from platformcode import xbmc_videolibrary
|
||||||
xbmc_videolibrary.mark_content_as_watched_on_alfa(path + '/tvshow.nfo')
|
xbmc_videolibrary.mark_content_as_watched_on_kod(filetools.join(path,'tvshow.nfo'))
|
||||||
except:
|
except:
|
||||||
logger.error(traceback.format_exc())
|
logger.error(traceback.format_exc())
|
||||||
|
|
||||||
@@ -154,7 +154,7 @@ def check_for_update(overwrite=True):
|
|||||||
try:
|
try:
|
||||||
if config.is_xbmc(): #Si es Kodi, lo hacemos
|
if config.is_xbmc(): #Si es Kodi, lo hacemos
|
||||||
from platformcode import xbmc_videolibrary
|
from platformcode import xbmc_videolibrary
|
||||||
xbmc_videolibrary.mark_content_as_watched_on_alfa(path + '/tvshow.nfo')
|
xbmc_videolibrary.mark_content_as_watched_on_kod(filetools.join(path,'tvshow.nfo'))
|
||||||
except:
|
except:
|
||||||
logger.error(traceback.format_exc())
|
logger.error(traceback.format_exc())
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ def list_movies(item, silent=False):
|
|||||||
try:
|
try:
|
||||||
if config.is_xbmc(): #Si es Kodi, lo hacemos
|
if config.is_xbmc(): #Si es Kodi, lo hacemos
|
||||||
from platformcode import xbmc_videolibrary
|
from platformcode import xbmc_videolibrary
|
||||||
xbmc_videolibrary.mark_content_as_watched_on_alfa(nfo_path)
|
xbmc_videolibrary.mark_content_as_watched_on_kod(nfo_path)
|
||||||
except:
|
except:
|
||||||
logger.error(traceback.format_exc())
|
logger.error(traceback.format_exc())
|
||||||
|
|
||||||
@@ -192,7 +192,7 @@ def list_tvshows(item):
|
|||||||
try:
|
try:
|
||||||
if config.is_xbmc(): #Si es Kodi, lo hacemos
|
if config.is_xbmc(): #Si es Kodi, lo hacemos
|
||||||
from platformcode import xbmc_videolibrary
|
from platformcode import xbmc_videolibrary
|
||||||
xbmc_videolibrary.mark_content_as_watched_on_alfa(tvshow_path)
|
xbmc_videolibrary.mark_content_as_watched_on_kod(tvshow_path)
|
||||||
except:
|
except:
|
||||||
logger.error(traceback.format_exc())
|
logger.error(traceback.format_exc())
|
||||||
|
|
||||||
@@ -924,7 +924,7 @@ def mark_content_as_watched2(item):
|
|||||||
logger.info()
|
logger.info()
|
||||||
# logger.debug("item:\n" + item.tostring('\n'))
|
# logger.debug("item:\n" + item.tostring('\n'))
|
||||||
|
|
||||||
if filetools.exists(item.nfo):
|
if filetools.isfile(item.nfo):
|
||||||
head_nfo, it = videolibrarytools.read_nfo(item.nfo)
|
head_nfo, it = videolibrarytools.read_nfo(item.nfo)
|
||||||
#logger.debug(it)
|
#logger.debug(it)
|
||||||
name_file = ""
|
name_file = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user