From 22ea4a6a7cc80218432ab15692083c219b762392 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 9 Dec 2018 18:38:15 +0100 Subject: [PATCH] Fix FutureWarning --- resources/lib/itemtypes/music.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/itemtypes/music.py b/resources/lib/itemtypes/music.py index ad38378d..b9af43fb 100644 --- a/resources/lib/itemtypes/music.py +++ b/resources/lib/itemtypes/music.py @@ -493,7 +493,7 @@ class Song(MusicMixin, ItemBase): else: track = disc * 2 ** 16 + tracknumber year = api.year() - if not year and album_xml: + if not year and album_xml is not None: # Plex did not pass year info - get it from the parent album album_api = API(album_xml) year = album_api.year()