Piccola modifica
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import xbmc
|
||||
from core import filetools, support, videolibrarytools
|
||||
from core.videolibrarydb import videolibrarydb
|
||||
from core import filetools, videolibrarytools
|
||||
from core import videolibrarydb
|
||||
from platformcode import config, logger, platformtools
|
||||
from platformcode.xbmc_videolibrary import execute_sql_kodi, get_data, get_file_db
|
||||
from time import time, strftime, localtime
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
# XBMC Launcher (xbmc / kodi)
|
||||
# ------------------------------------------------------------
|
||||
|
||||
import platformcode
|
||||
from specials import videolibrary
|
||||
import sys, os
|
||||
|
||||
@@ -497,12 +496,12 @@ def play_from_library(item):
|
||||
xbmc.Player().stop()
|
||||
if xbmc.getCondVisibility('Window.IsMedia') and not item.window_type == 0:
|
||||
if item.contentType == 'episode':
|
||||
it = videolibrarydb.videolibrarydb[item.contentType][item.videolibrary_id]['{}x{:02d}'.format(item.infoLabels['season'], item.infoLabels['episode'])]['item']
|
||||
it = videolibrarydb[item.contentType][item.videolibrary_id]['{}x{:02d}'.format(item.infoLabels['season'], item.infoLabels['episode'])]['item']
|
||||
else:
|
||||
it = videolibrarydb.videolibrarydb[item.contentType][item.videolibrary_id]['item']
|
||||
it = videolibrarydb[item.contentType][item.videolibrary_id]['item']
|
||||
it.from_library = True
|
||||
xbmc.executebuiltin("Container.Update(" + sys.argv[0] + "?" + it.tourl() + ")")
|
||||
videolibrarydb.videolibrarydb.close()
|
||||
videolibrarydb.close()
|
||||
else:
|
||||
item.window = True
|
||||
return videolibrary.findvideos(item)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# XBMC Library Tools
|
||||
# ------------------------------------------------------------
|
||||
|
||||
import sys, os, threading, time, re, math, xbmc, xbmcgui, sqlite3
|
||||
import sys, os, threading, time, re, math, xbmc, xbmcgui
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
@@ -298,7 +298,7 @@ def mark_content_as_watched_on_kodi(item, value=1):
|
||||
|
||||
def set_watched_on_kod(data):
|
||||
from specials import videolibrary
|
||||
from core.videolibrarytools import videolibrarydb
|
||||
from core import videolibrarydb
|
||||
# from core.support import dbg;dbg()
|
||||
|
||||
data = jsontools.load(data)
|
||||
|
||||
Reference in New Issue
Block a user