AlexCSDev / PatreonDownloader

Powerful tool for downloading content posted by creators on patreon.com. Supports content hosted on patreon itself as well as external sites (additional plugins might be required).
MIT License
969 stars 99 forks source link

Google Drive URL: [70608200] Unable to retrieve name for external entry of type ExternalUrl #136

Open valdearg opened 2 years ago

valdearg commented 2 years ago

I've noticed an issue with downloading certain Google Drive URLs which are too large for Google to scan for viruses, do not download with the following error:

[70608200] Unable to retrieve name for external entry of type ExternalUrl:

(Apologies, rather not post the URL as they're from a NSFW Patreon user I subscribe to, happy to email a link.)

I've tested a couple of Drive links, one which works and one which doesn't work, the links are in the same style, the only difference seems to be that when you open the link the Google says "Google Drive can't scan this file for viruses. Download anyway?". Smaller sized files will go straight through to the download immediately.

The link is to a 500MB+ ZIP file.

image

I see that there's quite a few Stack Overflow questions on this, one person has suggested using:

https://www.googleapis.com/drive/v3/files/fileid/?key=yourapikey&alt=media

Instead of "yourapikey" the authorisation header should be possible. I've tried this manually and it appears to work, with the only caveat being that it doesn't keep the original filename, using "download.{extension}" instead.

AlexCSDev commented 2 years ago

This really looks to me like the file is not being passed to google drive plugin. Please send json files produced when you run the app with --json parameter and link(s) you are having issues with to alexcsdev@protonmail.com. I will take a look when I have free time.

valdearg commented 2 years ago

No worries! Sent along now, thanks for taking a look!