From bf681f53c34b2be67b55118bd46b4496a2aa03d5 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Wed, 13 Apr 2016 17:11:25 +0200 Subject: [PATCH] Fix smart playlists for Plex collections --- resources/lib/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 420e77b8..4c78d540 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -894,7 +894,9 @@ def playlistXSP(mediatype, tagname, viewid, viewtype="", delete=False): # Using write process since there's no guarantee the xml declaration works with etree itemtypes = { - 'homevideos': "movie" + 'homevideos': 'movies', + 'movie': 'movies', + 'show': 'tvshows' } logMsg("Plex", "Writing playlist file to: %s" % xsppath, 1) try: @@ -911,7 +913,7 @@ def playlistXSP(mediatype, tagname, viewid, viewtype="", delete=False): '\n\t\t' '%s\n\t' '\n' - '' + '\n' % (itemtypes.get(mediatype, mediatype), plname, tagname)) .encode('utf-8')) f.close()