Google Drive with Plex and local read-only cache

Perfect, it seems to work very well,

friends it's me again, I made changes to my script using the @Animosity022 script, but I had a 403 error return from api when primming the cache.

One thing the usage is great in the response time to use mediainfo for example. my problem is the time to scan the library, I followed the recommendations to limit things in the plex. however, a folder with 270 movie folders, it takes a few minutes to make the scanner. this is normal? my standard movie folder has 2700 folders with movies inside.

I'm using everything on windows, rclone and plex.

what was the exact error?

what is the exact rclone command?

with 2700 folders, i am sure it will take a few minutes to prime. is that a problem?

My script principal.
rclone mount --allow-other --dir-cache-time 1000h --log-level INFO --log-file C:\rclone\rclone_titi.log --poll-interval 15s --user-agent titiagente --rc --rc-addr :5572 --rc-no-auth --cache-dir=C:\rclone_cache --vfs-cache-mode full --vfs-cache-max-size 500G --vfs-cache-max-age 336h --bwlimit-file 16M drive-tiago: M:

priming
@echo off
title Rclone Prime
rclone rc vfs/refresh recursive=true --timeout 30m
pause

In fact, time assumes me because I have no parameters for comparison.

One thing my API is not in the same google suite account that I store things in, is this related?

the exact error at the time did not have a return. I ran the command, but it still didn't give the error.

--allow-other does nothing on windows, so you can remove that.

as for the API not in the same google suite account, could not comment on that, sorry.
i would assume that you want rclone to use the same suite as where the files are stored.
but we have many gdrive experts, hopefull one will stop by soon....

I didn't know that, I thought that enabling it would be possible for me to use this unit as via windows network share via //

I will try to create the API in the same account as the g suite.

do you want to net share the rclone mount over the lan to other computers?

yes, this is a wish, I want to set up a server just to use my media via kodi network, via Shield TV pro.

i can make that wish come true, give me a bit of time and i will explain how to do that.

i have been meaning to create a wiki about that.

did you know that rclone can act as server, not for SMB, but for other types
https://rclone.org/commands/rclone_serve/

1 Like

all right, from what i saw on android people use webdav

I got this error when priming.

2020/12/08 13:56:56 Failed to rc: connection failed: Post "http://localhost:5572/vfs/refresh": net/http: timeout awaiting response headers
Press any key to continue. . .

then this one.

C:\rclone>cd C:\rclone
{
"result": {
"": "list: failed to resolve shortcut: googleapi: Error 403: User Rate Limit Exceeded. Rate of requests for user exceed configured project quota. You may consider re-evaluating expected per-user traffic to the API and adjust project quota limits accordingly. You may monitor aggregate quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/drive.googleapis.com/quotas?project=290374489880, userRateLimitExceeded"
}
}
Pressione qualquer tecla para continuar. . .

you can run the rclone executable directly on an android phone...

On Windows 10 pro.

i run rclone on my android phone, to copy files between my cellphone and the the cloud.
i have a wiki about that
https://github.com/rclone/rclone/wiki/turn-your-android-phone-into-a-media-server

I will look at it carefully.

this looks a lot like what I'm looking for for the kodi on android solution and shield tv

I will summon @VBB using --magic

2 Likes

Tiago, did you tie the API to the account you use with rclone now? If so, do you still get the 403s?

In regards to your Plex scans, a folder with 270 movies should scan very quickly, as long as it's not the initial scan. A folder with 2700 would take significantly longer, especially in Windows. For example, my daily Plex scan takes more than two hours these days :scream:

I never run into any quota limits, though. Priming takes about three minutes.

1 Like

thanks for the attention friend, i think the ease i had in raidrive is limiting me to get used to the rclone.

I had the raidrive, I used to add films during the day and every 4 hours I updated the collection with the option of adding folders and it ran atypically or every 4 hours.

using the rclone I still haven't found myself in that time, I don't see any problems with the verification taking 2 hours.

I just need to find the times and schedule the checks to be performed after pressing the drive.

about the API I'm still having problems, I'm trying to create one with my gsuite account, but now it's time to authenticate.

## Erro 400: redirect_uri_mismatch

The redirect URI in the request, http://127.0.0.1:53682/, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/${your_client_id}?project=${your_project_number}

frustrated since yesterday.

Done api.

Success!

All done. Please go back to rclone.

The drive Priming, you can follow via log, because it is running and I don't know how it is.