B"H shuffle code a bit to make it clearer
This commit is contained in:
parent
ff66d4fa40
commit
8f5d3e0216
1 changed files with 2 additions and 2 deletions
|
@ -347,11 +347,11 @@ class SubsonicApi():
|
||||||
return None
|
return None
|
||||||
return Album(
|
return Album(
|
||||||
name=album.get('title') or album.get('name') or UNKNOWN_ALBUM,
|
name=album.get('title') or album.get('name') or UNKNOWN_ALBUM,
|
||||||
|
num_tracks=album.get('songCount'),
|
||||||
uri=uri.get_album_uri(album.get('id')),
|
uri=uri.get_album_uri(album.get('id')),
|
||||||
artists=[Artist(
|
artists=[Artist(
|
||||||
name=album.get('artist'),
|
name=album.get('artist'),
|
||||||
uri=uri.get_artist_uri(album.get('artistId')))],
|
uri=uri.get_artist_uri(album.get('artistId')))])
|
||||||
num_tracks=album.get('songCount'))
|
|
||||||
|
|
||||||
def raw_directory_to_ref(self, directory):
|
def raw_directory_to_ref(self, directory):
|
||||||
if directory is None:
|
if directory is None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue