mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-16 21:26:14 +00:00
do not create playlists for homevideos or photos
This commit is contained in:
parent
333d6b2831
commit
01db164dc9
2 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue