gphotos-uploader-cli: album creation is broken - 1 album per photo
I tried to upload a bunch of photos and did set album
makeAlbums: {
enabled: true
use: folderNames
}
which resulted in one album per photo instead of per folder. This is with an installation as of today (2018-10-22) direct from Github with go, running Debian/sid.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 36 (2 by maintainers)
@antonmos Yes I’ve seen it. Current
master
branch has a fix for albums pagination, but this doesn’t address the problem with album creation…There are several concurrent processes calling
GetOrCreateAlbumByName()
. It’s happening that when one process is creating the album, another process doesn’t know about it, so it will try to create it again. Due to the possibility of creating several albums with the same name, differentupload()
process are using different albums IDs. You can see it here.This bug was probably introduced when concurrency was implemented. A way to testing it is to set
const maxNumberOfWorkers = 1
onfileUpload.go
. Previous of that the album pagination was causing some issues, too. 😢