Fix FutureWarning

This commit is contained in:
croneter 2018-12-09 18:38:15 +01:00
parent 8ed61410ab
commit 22ea4a6a7c

View file

@ -493,7 +493,7 @@ class Song(MusicMixin, ItemBase):
else: else:
track = disc * 2 ** 16 + tracknumber track = disc * 2 ** 16 + tracknumber
year = api.year() 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 # Plex did not pass year info - get it from the parent album
album_api = API(album_xml) album_api = API(album_xml)
year = album_api.year() year = album_api.year()