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()