Skip to content
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

Handle inaccessible Google Drive files sensibly #96

Open
MrCreosote opened this issue Mar 12, 2024 · 0 comments
Open

Handle inaccessible Google Drive files sensibly #96

MrCreosote opened this issue Mar 12, 2024 · 0 comments

Comments

@MrCreosote
Copy link
Member

Currently, if a google drive file is not publicly available, the request gets forwarded to a request access page with a 200 status code. This tricks the download code into thinking things are ok, and the code saves a file (at least currently) called uc with the contents of the page, which hopefully will cause any remaining steps to fail based on the file format. If not things could get messy.

Hopefully this doesn't happen too often, as most people will get the link from google drive directly, which means they have access.

The google download code should be replaced to avoid using direct links if possible, since Google thinks they're coming from a browser.

Investigate the google drive python library.

@MrCreosote MrCreosote changed the title Handle inaccesisble Google Drive files sensibly Handle inaccessible Google Drive files sensibly Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant