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
rclone Google Photos cannot sync the data before 2000 #3630
Comments
You should be able to read the media in media/all and in album. It is quite expensive finding the oldest file in the photos album so rclone hard codes the 2000 value. This could be a parameter? What do you think? And the reply on the forum was:
|
This could be made configurable rclone/backend/googlephotos/pattern.go Line 229 in 38652d0
|
i think made it configurable maybe better… thanks |
Do you want to try doing this? I can talk you through it. |
Yes!Please tell me the test method. |
It doesn't feel right, having this in a config param. One way to do it could be in the googlephotos.init(). This seems a bit hacky, which leads to an idea for a new feature. Any thoughts? |
It isn't ideal!
Binary search is a nice idea :-) It will take about 8 queries to do this at 1-2 second each so a noticeable amount of time.
There is one already. So this could run to update the value stored in the config file. |
@YNZone wrote:
First step create a new option here, called rclone/backend/googlephotos/googlephotos.go Line 137 in 22bf858
Add it to the options struct rclone/backend/googlephotos/googlephotos.go Line 142 in 22bf858
Next step use that option here rclone/backend/googlephotos/pattern.go Line 227 in 22bf858
You'll need to make |
Sorry, this is a bit difficult. I think it would be better to wait for the 1.51 version. |
@ncw could point me to where the callback function is configured. I cant seem to find it |
This is the config callback
|
@ncw
When you say make Line 254 in ab89539
|
The function rclone/backend/googlephotos/googlephotos.go Line 148 in 1868c77
so become func (f *Fs) years(ctx context.Context, f lister, prefix string, match []string) (entries fs.DirEntries, err error) { Then instead of using the constant rclone/backend/googlephotos/pattern.go Line 229 in 1868c77
|
I'd like to tackle this one if no one has yet. |
@dooven wrote:
That would be great - thank you :-) |
Thanks to @dooven this is fixed! I've merged this to master now which means it will be in the latest beta in 15-30 mins and released in v1.52 |
Output of
rclone version
rclone v1.49.5
Describe the issue
rclone Google Photos cannot sync the data before 2000,but gphotos-sync(https://pypi.org/project/gphotos-sync/) can do this.
The text was updated successfully, but these errors were encountered: