diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 79b79e88..58053e1f 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -474,7 +474,7 @@ def BrowseContent(viewname, type="", folderid=""): xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=li.getProperty("path"), listitem=li) - xbmcplugin.endOfDirectory(handle=int(sys.argv[1]),succeeded=True,updateListing=False,cacheToDisc=False) + xbmcplugin.endOfDirectory(handle=int(sys.argv[1])) if filter == "recent": xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_DATE) else: diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 07d1c218..babe1985 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -415,7 +415,8 @@ class LibrarySync(threading.Thread): viewtype=current_viewtype, delete=True) # Added new playlist - utils.playlistXSP(mediatype, foldername, viewtype) + if mediatype in ['movies', 'tvshows', 'musicvideos']: + utils.playlistXSP(mediatype, foldername, viewtype) # Add new video node if mediatype != "musicvideos": vnodes.viewNode(totalnodes, foldername, mediatype, viewtype) @@ -430,7 +431,8 @@ class LibrarySync(threading.Thread): else: if mediatype != "music": # Validate the playlist exists or recreate it - utils.playlistXSP(mediatype, foldername, viewtype) + if mediatype in ['movies', 'tvshows', 'musicvideos']: + utils.playlistXSP(mediatype, foldername, viewtype) # Create the video node if not already exists if mediatype != "musicvideos": vnodes.viewNode(totalnodes, foldername, mediatype, viewtype)