Fix FutureWarning
This commit is contained in:
parent
8ed61410ab
commit
22ea4a6a7c
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue