From 1fc22ce824e1cb3ffda6218eff1c154e031e9b1b Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 21 Sep 2018 04:12:24 -0500 Subject: [PATCH] Fix empty artist, missing Title --- resources/lib/objects/actions.py | 2 +- resources/lib/objects/obj_map.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/objects/actions.py b/resources/lib/objects/actions.py index 6996a4c0..732c92ff 100644 --- a/resources/lib/objects/actions.py +++ b/resources/lib/objects/actions.py @@ -381,7 +381,7 @@ class Actions(object): metadata.update({ 'mediatype': "musicvideo", 'album': obj['Album'], - 'artist': obj['Artists'], + 'artist': obj['Artists'] or [], 'lastplayed': obj['DatePlayed'], 'duration': obj['Runtime'] }) diff --git a/resources/lib/objects/obj_map.json b/resources/lib/objects/obj_map.json index a99112a5..02fec2e0 100644 --- a/resources/lib/objects/obj_map.json +++ b/resources/lib/objects/obj_map.json @@ -162,6 +162,7 @@ }, "MusicVideoUserData": { "Id": "Id", + "Title": "Name", "Runtime": "RunTimeTicks,CumulativeRunTimeTicks", "Resume": "UserData/PlaybackPositionTicks", "Favorite": "UserData/IsFavorite",