Fix: trim spaces from albumFolder name for disk

This commit is contained in:
Neeraj Gupta 2023-12-07 14:16:06 +05:30
parent 33994fac5e
commit 8e0eaae277

View file

@ -50,6 +50,8 @@ func (c *ClICtrl) createLocalFolderForRemoteAlbums(ctx context.Context, account
// replace : with _
albumFolderName = strings.ReplaceAll(albumFolderName, ":", "_")
albumFolderName = strings.ReplaceAll(albumFolderName, "/", "_")
albumFolderName = strings.TrimSpace(albumFolderName)
albumID := album.ID
if _, ok := folderToMetaMap[albumFolderName]; ok {