Fixed path concat in pathtemplates

This commit is contained in:
RemixDev 2020-09-28 23:06:22 +02:00
parent 798dcdd3d9
commit f85b208af4
3 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
__version__ = "1.5.0" __version__ = "1.5.1"

View File

@ -94,7 +94,7 @@ def generateFilepath(track, settings):
(track.playlist and settings['createStructurePlaylist']) (track.playlist and settings['createStructurePlaylist'])
) )
): ):
filepath = filepath / settingsRegexAlbum(settings['albumNameTemplate'], track.album, settings, track.playlist if track.playlist else None) filepath = filepath / settingsRegexAlbum(settings['albumNameTemplate'], track.album, settings, track.playlist)
coverPath = filepath coverPath = filepath
if not (track.playlist and not settings['tags']['savePlaylistAsCompilation']): if not (track.playlist and not settings['tags']['savePlaylistAsCompilation']):
@ -109,7 +109,7 @@ def generateFilepath(track, settings):
(track.playlist and settings['createStructurePlaylist']) (track.playlist and settings['createStructurePlaylist'])
) )
)): )):
filepath = filepath / 'CD' + str(track.discNumber) filepath = filepath / f'CD{str(track.discNumber)}'
return (filepath, artistPath, coverPath, extrasPath) return (filepath, artistPath, coverPath, extrasPath)

View File

@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
setup( setup(
name="deemix", name="deemix",
version="1.5.0", version="1.5.1",
description="A barebone deezer downloader library", description="A barebone deezer downloader library",
long_description=README, long_description=README,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",