New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
googlephotos: Use encoder for album names #5535
Conversation
247d395
to
8aac40c
Compare
I think this will break existing users as rclone uses the
This is easy to fix though - just use Other thoughts
|
8aac40c
to
f422acf
Compare
Thanks for taking a look. I've updated the branch to use As expected the / diffs found initially are gone:
My thoughts to your questions:
From what I can tell both
I haven't seen any issues yet and I think it makes sense as photo names are least likely to have human input - automatically named by camera or phone using the most widely accepted set of characters. Also even manually named files imported into Google Photos will have to have come from an existing filesystem with character limitations. The problem with Album names is that Google Photos hasn't done any sanity checking but with photo names this seems to be automatically taken care of? I had a quick look and I think we would add this after this line:
I have no way to test it though so I wouldn't feel comfortable making this change :/ |
I had a quick look at the failing test - doesn't seem to be related to this change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that looks great now - thank you :-)
Let's ignore files for the moment - I think you are right about them being sanitised already.
I'll merge it now.
Awesome, thanks! |
What is the purpose of this change?
This fixes the problem of album names containing \n which caused problems as local directories could not be created during sync.
Was the change discussed in an issue or in the forum before?
Yes: https://forum.rclone.org/t/google-photos-sync-failed-for-multi-lined-album-names/25589
Checklist
Manual Testing
Please note the diff is intentionally redacted - it show cases the two primary differences in album names due to this change.