fix getTrackPath bug

This commit is contained in:
Yaronzz
2022-12-21 09:16:22 +08:00
parent 3eb11252c2
commit 513be57c3d
+2 -2
View File
@@ -117,8 +117,8 @@ def getTrackPath(track, stream, album=None, playlist=None):
explicit = "(Explicit)" if track.explicit else ''
# album and addyear
albumName = __fixPath__(album.title)
year = __getYear__(album.releaseDate)
albumName = __fixPath__(album.title) if album is not None else ''
year = __getYear__(album.releaseDate) if album is not None else ''
# extension
extension = __getExtension__(stream)