maxx 2 Posted June 26, 2022 Share Posted June 26, 2022 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 More sharing options...
maxx 2 Posted June 26, 2022 Author Share Posted June 26, 2022 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 More sharing options...
Luke 37060 Posted June 27, 2022 Share Posted June 27, 2022 Hi, technically possible, yes, but would require a lot of custom development specific to google drive. Link to comment Share on other sites More sharing options...
maxx 2 Posted June 27, 2022 Author Share Posted June 27, 2022 for the moment i solve the problem with http server, thanks for answer 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now