Jump to content

GOOGLE DRIVE OAUTH DOWNLOADS IN EMBY PLAYERS


maxx

Recommended Posts

Is there any chance we can add to emby players the google download function which uses oauth2 to download the file and not use rclone. I say this because for practical purposes it would only be to place the script that appears on the google drive api v3 page to download content with client secret

https://developers.google.com/drive/api/guides/manage-downloads

 

The limitation that rclone has, like the google app, is that they allow us to download to the server and from the server to the target user, there we have an unnecessary bottleneck and what we should do is that the client x requests the file directly from google and the server manages the users and whether or not they have access to the given library

Link to comment
Share on other sites

The only what i need it's the possibility to add headers to give access token to the files

I do in python and is something like this

url = 'https://www.googleapis.com/drive/v3/files/'+str(new_id)+"?key="+str(apicode)+"&alt=media"
r = requests.get(url, headers={"Authorization":"Bearer " + access_token})
 
Link to comment
Share on other sites

Hi, technically possible, yes, but would require a lot of custom development specific to google drive.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...