-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
Docs files interrupt downloads #341
Comments
Upon investigation, this bug report was not quite accurate, the core of the error is that gdown fails to download docs files if the request originates in a non-english region. As I am in the middle east, my google docs documents don't have '- Google Docs' their title, but rather an arabic translation of it. I've fixed this in my fork by simply checking for '/document/', '/spreadsheets/', and '/presentation/' in the url redirected from drive.google/com/open?id instead of checking the title, and it seems to be working fine. |
@OmarAHex Can you give me an example to reproduce? |
https://drive.google.com/drive/folders/12cQ4ltgbkBhltqylzSg7g0n7lcTV8zew |
Provide environment information
Python 3.11.5
What OS are you using?
Windows 11
Describe the Bug
When downloading a folder, if there is a google doc present in the folder, a FileURLRetrievalError will pop up and the download will stop in it's tracks. But this file is actually downloadable with a format of https://docs.google.com/document/d/{id}/export which is a direct link (or redirects to one anyway).
I'm not sure whether this happens with presentations (https://docs.google.com/presentation/d/{id}/export) and spreadsheets (https://docs.google.com/presentation/d/{id}/export) but I assume it would
Expected Behavior
No response
To Reproduce
No response
The text was updated successfully, but these errors were encountered: