GooglePhotos to Album by filename

My question is maybe similar to How to add already uploaded photo to album

in that I have a list of filenames that I want to add to an album in google photos - is there a command that I'm missing that will achieve this ?

I guess something like rclone move gphotos remote >>> to album ?

seems like this might be possible with just rclone move .... testing this locally and with the strange dir structure of gphotos I'm trying to right now just find this ONE file but it doesn't seem to be crawling the dir tree?

PS C:\Users\Tony> rclone lsf -vv gphotos: --include "2022-09-24 10-33-47.heic"
2022/11/16 10:43:32 DEBUG : rclone: Version "v1.61.0-beta.6555.0c56c4652" starting with parameters ["C:\\Program Files (x86)\\rclone\\rclone.exe" "lsf" "-vv" "gphotos:" "--include" "2022-09-24 10-33-47.heic"]
2022/11/16 10:43:32 DEBUG : Creating backend with remote "gphotos:"
2022/11/16 10:43:32 DEBUG : Using config file from "C:\\Users\\Tony\\.config\\rclone\\rclone.conf"
2022/11/16 10:43:32 DEBUG : Google Photos path "": List: dir=""
2022/11/16 10:43:32 DEBUG : Google Photos path "": >List: err=<nil>
album/
feature/
media/
shared-album/
upload/
2022/11/16 10:43:32 DEBUG : 2 go routines active

is that expected? or is that telling me it can't find that file in any of those dir's?

Did you check out:

That goes through quite a bit of how it works / limitations / etc.

Yes but it doesn't explain why I can't ls that file ...

It's in a folder and you need to recurse to see files below the top level directory. The layout portion was the bit that explains as it's not in the root folder.

felix@gemini:~/test$ rclone lsf /home/felix/test --include test3file
test3/
felix@gemini:~/test$ rclone lsf -R /home/felix/test --include test3file
test3/
test3/test3file

ohhh FML - yea that makes more sense but it wasn't super clear to me in the docs .... checking further now .

I'm not sure why rclone ls recurses by default but lsf doesn't.

Seems odd to me but I never use lsf.

Alright so back to the main thing - can I just use rclone move to 'add' the file to an album? or does it have to be copy?

as expected the ls/lsf command does finally show the file and yes its in mutiple locations per the docs

 PS C:\Users\Tony> rclone ls gphotos: --include "2022-09-24 10-33-47.heic"
2022/11/16 11:07:20 ERROR : upload: error listing: directory not found
       -1 media/by-year/2022/2022-09-24 10-33-47.heic
       -1 media/by-month/2022/2022-09/2022-09-24 10-33-47.heic
       -1 media/all/2022-09-24 10-33-47.heic

but its odd to me - which one would I 'move' to the album? or maybe thats why copy has to be it? though copy doesn't make a whole lot of sense either ??

Google's Photo API is god awful and I don't use it so I really can't offer much other than looking through the examples on the link I listed as that shows some flows / outputs.

Sounds like you'd need some trial and error or another person that uses it to chime in with some real world examples.

agree but its all we got for now :frowning:

does rclone not support albums.batchAddMediaItems?

doing some testing on my own with this command:
rclone move gphotos: --include "2022-09-24 10-33-47.heic" album/"Mom's Photos"/ -v

in the hopes that it would add the said file to the album but I just have 40min of strangeness ...

2022/11/16 12:14:41 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:       1m0.0s

2022/11/16 12:15:41 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:       2m0.0s

2022/11/16 12:15:47 INFO  : media/by-year/2022/2022-09-24 10-33-47.heic: Copied (Rcat, new)
2022/11/16 12:15:47 ERROR : media/by-year/2022/2022-09-24 10-33-47.heic: Couldn't delete: google photos API only implements removing files from albums
2022/11/16 12:16:41 INFO  :
Transferred:        4.397 MiB / 4.397 MiB, 100%, 22.741 KiB/s, ETA 0s
Errors:                 2 (retrying may help)
Checks:                 2 / 2, 100%
Deleted:                1 (files), 0 (dirs)
Transferred:            1 / 1, 100%
Elapsed time:       3m0.0s

2022/11/16 12:17:41 INFO  :
Transferred:        4.397 MiB / 4.397 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 2 (retrying may help)
Checks:                 2 / 2, 100%
Deleted:                1 (files), 0 (dirs)
Transferred:            1 / 1, 100%
Elapsed time:       4m0.0s

2022/11/16 12:18:40 INFO  : media/by-month/2022/2022-09/2022-09-24 10-33-47.heic: Copied (Rcat, new)
2022/11/16 12:18:40 ERROR : media/by-month/2022/2022-09/2022-09-24 10-33-47.heic: Couldn't delete: google photos API only implements removing files from albums
2022/11/16 12:18:41 INFO  :
Transferred:        8.794 MiB / 8.794 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 3 (retrying may help)
Checks:                 4 / 4, 100%
Deleted:                2 (files), 0 (dirs)
Transferred:            2 / 2, 100%
Elapsed time:       5m0.0s

2022/11/16 12:19:41 INFO  :
Transferred:        8.794 MiB / 8.794 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 3 (retrying may help)
Checks:                 4 / 4, 100%
Deleted:                2 (files), 0 (dirs)
Transferred:            2 / 2, 100%
Elapsed time:       6m0.0s

2022/11/16 12:20:41 INFO  :
Transferred:        8.794 MiB / 8.794 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 3 (retrying may help)
Checks:                 4 / 4, 100%
Deleted:                2 (files), 0 (dirs)
Transferred:            2 / 2, 100%
Elapsed time:       7m0.0s

2022/11/16 12:21:41 INFO  :
Transferred:        8.794 MiB / 8.794 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 3 (retrying may help)
Checks:                 4 / 4, 100%
Deleted:                2 (files), 0 (dirs)
Transferred:            2 / 2, 100%
Elapsed time:       8m0.0s

2022/11/16 12:22:37 INFO  : media/all/2022-09-24 10-33-47.heic: Copied (Rcat, new)
2022/11/16 12:22:37 ERROR : media/all/2022-09-24 10-33-47.heic: Couldn't delete: google photos API only implements removing files from albums
2022/11/16 12:22:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:       9m0.0s

2022/11/16 12:23:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      10m0.0s

2022/11/16 12:24:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      11m0.0s

2022/11/16 12:25:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      12m0.0s

2022/11/16 12:26:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      13m0.0s

2022/11/16 12:27:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      14m0.0s

2022/11/16 12:28:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      15m0.0s

2022/11/16 12:29:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      16m0.0s

2022/11/16 12:30:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      17m0.0s

2022/11/16 12:31:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      18m0.0s

2022/11/16 12:32:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      19m0.0s

2022/11/16 12:33:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      20m0.0s

2022/11/16 12:34:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      21m0.0s

2022/11/16 12:35:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      22m0.0s

2022/11/16 12:36:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      23m0.0s

2022/11/16 12:37:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      24m0.0s

2022/11/16 12:38:41 INFO  :
Transferred:       13.191 MiB / 13.191 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                 6 / 6, 100%
Deleted:                3 (files), 0 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:      25m0.0s

2022/11/16 12:38:50 INFO  : media/by-day/2022/2022-09-24/2022-09-24 10-33-47.heic: Copied (Rcat, new)
2022/11/16 12:38:50 ERROR : media/by-day/2022/2022-09-24/2022-09-24 10-33-47.heic: Couldn't delete: google photos API only implements removing files from albums
2022/11/16 12:39:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 5 (retrying may help)
Checks:                 8 / 8, 100%
Deleted:                4 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      26m0.0s

2022/11/16 12:40:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 5 (retrying may help)
Checks:                 8 / 8, 100%
Deleted:                4 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      27m0.0s

2022/11/16 12:41:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 5 (retrying may help)
Checks:                 8 / 8, 100%
Deleted:                4 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      28m0.0s

2022/11/16 12:42:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 5 (retrying may help)
Checks:                 8 / 8, 100%
Deleted:                4 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      29m0.0s

2022/11/16 12:43:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 5 (retrying may help)
Checks:                 8 / 8, 100%
Deleted:                4 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      30m0.0s

2022/11/16 12:44:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 5 (retrying may help)
Checks:                 8 / 8, 100%
Deleted:                4 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      31m0.0s

2022/11/16 12:44:55 ERROR : Attempt 1/3 failed with 5 errors and: google photos API only implements removing files from albums
2022/11/16 12:44:55 ERROR : upload: error reading source directory: directory not found
2022/11/16 12:45:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 1 (retrying may help)
Checks:                 8 / 8, 100%
Deleted:                4 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      32m0.0s

2022/11/16 12:46:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 1 (retrying may help)
Checks:                 8 / 8, 100%
Deleted:                4 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      33m0.0s

2022/11/16 12:47:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 1 (retrying may help)
Checks:                 8 / 8, 100%
Deleted:                4 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      34m0.0s

2022/11/16 12:48:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 1 (retrying may help)
Checks:                 8 / 8, 100%
Deleted:                4 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      35m0.0s

2022/11/16 12:49:05 ERROR : media/by-year/2022/2022-09-24 10-33-47.heic: Couldn't delete: google photos API only implements removing files from albums
2022/11/16 12:49:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 2 (retrying may help)
Checks:                10 / 10, 100%
Deleted:                5 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      36m0.0s

2022/11/16 12:50:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 2 (retrying may help)
Checks:                10 / 10, 100%
Deleted:                5 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      37m0.0s

2022/11/16 12:51:36 ERROR : media/by-month/2022/2022-09/2022-09-24 10-33-47.heic: Couldn't delete: google photos API only implements removing files from albums
2022/11/16 12:51:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 3 (retrying may help)
Checks:                12 / 12, 100%
Deleted:                6 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      38m0.0s

2022/11/16 12:52:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 3 (retrying may help)
Checks:                12 / 12, 100%
Deleted:                6 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      39m0.0s

2022/11/16 12:53:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 3 (retrying may help)
Checks:                12 / 12, 100%
Deleted:                6 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      40m0.0s

2022/11/16 12:54:22 ERROR : media/all/2022-09-24 10-33-47.heic: Couldn't delete: google photos API only implements removing files from albums
2022/11/16 12:54:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                14 / 14, 100%
Deleted:                7 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      41m0.0s

2022/11/16 12:55:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                14 / 14, 100%
Deleted:                7 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      42m0.0s

2022/11/16 12:56:41 INFO  :
Transferred:       17.588 MiB / 17.588 MiB, 100%, 15.439 KiB/s, ETA 0s
Errors:                 4 (retrying may help)
Checks:                14 / 14, 100%
Deleted:                7 (files), 0 (dirs)
Transferred:            4 / 4, 100%
Elapsed time:      43m0.0s

I only can assume that this is attempting a copy then delete but it can't delete ??? idk whats going on lol

nothing gets coped or moved when I check on gphotos...

Ancient history is why!

It's one of those things I'd change for rclone v2!

anyone know how to proceed with adding files already uploaded to a album? per above nothing I'm trying is working :frowning:

Try to upload the files to the album again - that will most likely work and google photos will detect the duplicates so the files will not use any extra storage.