wkentaro / gdown

Google Drive Public File Downloader when Curl/Wget Fails
MIT License
4.23k stars 348 forks source link

Fix download_folder #170

Closed K0lb3 closed 2 years ago

K0lb3 commented 2 years ago

Hello, I noticed two small problems that occur when using the download_folder function.

1. pass remaining_ok to internal recursion

When using remaining_ok, it's not passed to download_and_parse_google_drive_link when parsing folders within folders.

2. correctly parse the folder name

Google uses "–" instead of "-", which is the cause of the current name folder finding to always return an empty name for the folder.