do not create playlists for homevideos or photos

This commit is contained in:
marcelveldt 2016-01-22 11:41:12 +01:00
parent 333d6b2831
commit 01db164dc9
2 changed files with 5 additions and 3 deletions

View file

@ -474,7 +474,7 @@ def BrowseContent(viewname, type="", folderid=""):
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=li.getProperty("path"), listitem=li) 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": if filter == "recent":
xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_DATE) xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_DATE)
else: else:

View file

@ -415,6 +415,7 @@ class LibrarySync(threading.Thread):
viewtype=current_viewtype, viewtype=current_viewtype,
delete=True) delete=True)
# Added new playlist # Added new playlist
if mediatype in ['movies', 'tvshows', 'musicvideos']:
utils.playlistXSP(mediatype, foldername, viewtype) utils.playlistXSP(mediatype, foldername, viewtype)
# Add new video node # Add new video node
if mediatype != "musicvideos": if mediatype != "musicvideos":
@ -430,6 +431,7 @@ class LibrarySync(threading.Thread):
else: else:
if mediatype != "music": if mediatype != "music":
# Validate the playlist exists or recreate it # Validate the playlist exists or recreate it
if mediatype in ['movies', 'tvshows', 'musicvideos']:
utils.playlistXSP(mediatype, foldername, viewtype) utils.playlistXSP(mediatype, foldername, viewtype)
# Create the video node if not already exists # Create the video node if not already exists
if mediatype != "musicvideos": if mediatype != "musicvideos":