remove unused import

This commit is contained in:
angelblue05 2016-11-07 08:36:32 -06:00
parent caead29793
commit fed57ef56b

View file

@ -9,7 +9,6 @@ import sys
import traceback import traceback
import xbmc import xbmc
import xbmcaddon
import xbmcgui import xbmcgui
import xbmcplugin import xbmcplugin
import xbmcvfs import xbmcvfs
@ -25,7 +24,6 @@ KODI = xbmc.getInfoLabel('System.BuildVersion')[:2]
################################################################################################# #################################################################################################
def video_database(): def video_database():
db_version = { db_version = {
'13': 78, # Gotham '13': 78, # Gotham
@ -34,14 +32,10 @@ def video_database():
'16': 99, # Jarvis '16': 99, # Jarvis
'17': 107 # Krypton '17': 107 # Krypton
} }
return xbmc.translatePath("special://database/MyVideos%s.db"
path = xbmc.translatePath("special://database/MyVideos%s.db" % db_version.get(KODI, "")).decode('utf-8')
% db_version.get(KODI, "")).decode('utf-8')
return path
def music_database(): def music_database():
db_version = { db_version = {
'13': 46, # Gotham '13': 46, # Gotham
@ -50,11 +44,8 @@ def music_database():
'16': 56, # Jarvis '16': 56, # Jarvis
'17': 60 # Krypton '17': 60 # Krypton
} }
return xbmc.translatePath("special://database/MyMusic%s.db"
path = xbmc.translatePath("special://database/MyMusic%s.db" % db_version.get(KODI, "")).decode('utf-8')
% db_version.get(KODI, "")).decode('utf-8')
return path
def texture_database(): def texture_database():
return xbmc.translatePath("special://database/Textures13.db").decode('utf-8') return xbmc.translatePath("special://database/Textures13.db").decode('utf-8')
@ -214,7 +205,6 @@ def db_reset():
if resp: if resp:
import connectmanager import connectmanager
# Delete the settings # Delete the settings
addon = xbmcaddon.Addon()
addondir = xbmc.translatePath( addondir = xbmc.translatePath(
"special://profile/addon_data/plugin.video.emby/").decode('utf-8') "special://profile/addon_data/plugin.video.emby/").decode('utf-8')
dataPath = "%ssettings.xml" % addondir dataPath = "%ssettings.xml" % addondir