mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2024-12-02 04:23:57 +01:00
reintroduce split_album_discs config
This commit is contained in:
parent
543567079b
commit
c836240b30
@ -179,13 +179,28 @@ class Config:
|
|||||||
if v:
|
if v:
|
||||||
return v
|
return v
|
||||||
if mode == 'playlist':
|
if mode == 'playlist':
|
||||||
|
if cls.get_split_album_discs():
|
||||||
|
split = os.path.split(OUTPUT_DEFAULT_PLAYLIST)
|
||||||
|
return os.path.join(split[0], 'Disc {disc_number}', split[0])
|
||||||
return OUTPUT_DEFAULT_PLAYLIST
|
return OUTPUT_DEFAULT_PLAYLIST
|
||||||
if mode == 'extplaylist':
|
if mode == 'extplaylist':
|
||||||
|
if cls.get_split_album_discs():
|
||||||
|
split = os.path.split(OUTPUT_DEFAULT_PLAYLIST_EXT)
|
||||||
|
return os.path.join(split[0], 'Disc {disc_number}', split[0])
|
||||||
return OUTPUT_DEFAULT_PLAYLIST_EXT
|
return OUTPUT_DEFAULT_PLAYLIST_EXT
|
||||||
if mode == 'liked':
|
if mode == 'liked':
|
||||||
|
if cls.get_split_album_discs():
|
||||||
|
split = os.path.split(OUTPUT_DEFAULT_LIKED_SONGS)
|
||||||
|
return os.path.join(split[0], 'Disc {disc_number}', split[0])
|
||||||
return OUTPUT_DEFAULT_LIKED_SONGS
|
return OUTPUT_DEFAULT_LIKED_SONGS
|
||||||
if mode == 'single':
|
if mode == 'single':
|
||||||
|
if cls.get_split_album_discs():
|
||||||
|
split = os.path.split(OUTPUT_DEFAULT_SINGLE)
|
||||||
|
return os.path.join(split[0], 'Disc {disc_number}', split[0])
|
||||||
return OUTPUT_DEFAULT_SINGLE
|
return OUTPUT_DEFAULT_SINGLE
|
||||||
if mode == 'album':
|
if mode == 'album':
|
||||||
|
if cls.get_split_album_discs():
|
||||||
|
split = os.path.split(OUTPUT_DEFAULT_ALBUM)
|
||||||
|
return os.path.join(split[0], 'Disc {disc_number}', split[0])
|
||||||
return OUTPUT_DEFAULT_ALBUM
|
return OUTPUT_DEFAULT_ALBUM
|
||||||
raise ValueError()
|
raise ValueError()
|
||||||
|
Loading…
Reference in New Issue
Block a user