This commit is contained in:
angelblue05 2016-11-05 17:36:52 -05:00
parent 5b6a53f58b
commit 48405f6215

View file

@ -5,6 +5,7 @@
import logging
import shutil
import os
import unicodedata
import xml.etree.ElementTree as etree
import xbmc
@ -25,13 +26,6 @@ KODI = int(xbmc.getInfoLabel('System.BuildVersion')[:2])
class Views(object):
total_nodes = 0
nodes = list()
playlists = list()
views = list()
sorted_views = list()
grouped_views = list()
media_types = {
'movies': "Movie",
'tvshows': "Series",
@ -45,6 +39,13 @@ class Views(object):
self.emby_cursor = emby_cursor
self.kodi_cursor = kodi_cursor
self.total_nodes = 0
self.nodes = list()
self.playlists = list()
self.views = list()
self.sorted_views = list()
self.grouped_views = list()
self.video_nodes = VideoNodes()
self.playlist = Playlist()
self.emby = embyserver.Read_EmbyServer()
@ -374,7 +375,7 @@ class Playlist(object):
'</smartplaylist>'
% (special_types.get(media_type, media_type), name, tag))
f.close()
log.info("successfully added playlist: %s" % tag)
log.info("successfully added playlist: %s", tag)
@classmethod
def _delete_playlist(cls, path):
@ -444,7 +445,6 @@ class VideoNodes(object):
else:
dirname = viewid
nodepath = xbmc.translatePath(
"special://profile/library/video/emby/%s/" % dirname).decode('utf-8')