Fixed #56
This commit is contained in:
parent
d8fdc8344f
commit
73304e06c5
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
__version__ = "1.1.5"
|
||||
__version__ = "1.1.6"
|
||||
|
|
|
@ -628,7 +628,6 @@ def downloadTrackObj(dz, trackAPI, settings, bitrate, queueItem, extraTrack=None
|
|||
else:
|
||||
track['playlist']['artist'] = {"Main": []}
|
||||
track['playlist']['artists'] = []
|
||||
track['trackNumber'] = trackAPI["POSITION"]
|
||||
track['playlist']['trackTotal'] = trackAPI["_EXTRA_PLAYLIST"]['nb_tracks']
|
||||
track['playlist']['recordType'] = "Compilation"
|
||||
track['playlist']['barcode'] = ""
|
||||
|
@ -639,9 +638,10 @@ def downloadTrackObj(dz, trackAPI, settings, bitrate, queueItem, extraTrack=None
|
|||
'month': trackAPI["_EXTRA_PLAYLIST"]["creation_date"][5:7],
|
||||
'year': trackAPI["_EXTRA_PLAYLIST"]["creation_date"][0:4]
|
||||
}
|
||||
track['discNumber'] = "1"
|
||||
track['playlist']['discTotal'] = "1"
|
||||
if settings['tags']['savePlaylistAsCompilation'] and "playlist" in track:
|
||||
track['trackNumber'] = trackAPI["POSITION"]
|
||||
track['discNumber'] = "1"
|
||||
track['album'] = {**track['album'], **track['playlist']}
|
||||
else:
|
||||
if 'date' in track['album']:
|
||||
|
|
Loading…
Reference in New Issue