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

GDown don't retrieve and don't download entire folder contents #346

Open
ilentt opened this issue Apr 22, 2024 · 16 comments
Open

GDown don't retrieve and don't download entire folder contents #346

ilentt opened this issue Apr 22, 2024 · 16 comments
Labels
bug for issue

Comments

@ilentt
Copy link

ilentt commented Apr 22, 2024

Provide environment information

Environment information

image

What OS are you using?

Linux Mint 21.3

Describe the Bug

Execute gdown from terminal sometime it do not retrive and do not download entire content in folder

Command

gdown https://drive.google.com/drive/folders/1k8pgIaGw6PribxVqMgmDtlpzbUPJuzrX -O /home/user/Data/ --folder --remaining-ok

Log

Retrieving folder contents
Processing file 1kYFFWONUAWQO0eLG1m6fQtYhCdhFF__T 001 Introduction_en.srt
Processing file 1kb0ZFtV_52l4lw5p09Pqth5miRn3bBYd 001 Introduction_en.vtt
Processing file 1lZAbrCi0JFQm-8z90zkHhSexpnEHmCYq 001 Introduction_es.srt
Processing file 1laJV7z7UmoR6NUgeVkr1gVEME_uIQmCH 001 Introduction_es.vtt
Processing file 1lVnXrasy6gLmSL0WPGWDVGLCOOlTdvkb 001 Introduction_ja.srt
Processing file 1lXYFHgiCHg1_zUlgW8ciCJ1aIJ8F1QzG 001 Introduction_ja.vtt
Processing file 1kHzDRLH83NabU6fKHBI96dbz78x-Q9rs 001 Introduction_pt.srt
Processing file 1kIQ1LmV5pLmcDl0Kgm_2OveLo2wSqT0g 001 Introduction_pt.vtt
Processing file 1kdPqPtXY6LP2zNPrlpz3iYSYC0AQNxNZ 001 Introduction.mp4
Processing file 1lm9BKCtKkjQHn3b3aV5FJ7m7x-k--8ne 002 Course Info_en.srt
Processing file 1lojhYyc71WYMy8rhQ7ACk4Zp9mh8Nype 002 Course Info_en.vtt
Processing file 1ld3iH_nbMWg4GhrhoSyQXbuIWBbeXuZS 002 Course Info.mp4
Processing file 1m34ZrMwqNQ9joFm_CvUGO_o3lVDkL4_3 002 Java-SE-11-Developer-Exam-Number-1Z0-819.url
Processing file 1o-s_SWFtKTaBCdsQY2r9XbwqVKipIgRl 003 Dont-ever-put-a-non-Java-LTS-release-into-production.url
Processing file 1o--b2Ewvx0FEozDAp6n2_WtPmop2vE3H 003 Java-version-history.url
Processing file 1o1gU8o3Oqt4ebf-NqX9__koD9G0glzSs 003 Oracle-Java-SE-Support-Roadmap.url
Processing file 1nZSMjS21U2rwui4AhfTsRC6sD2RlPGRa 003 Why Java 11_en.srt
Processing file 1nePnts-Vj8ylCxpHuOcEGnyHGIhnJ4fy 003 Why Java 11_en.vtt
Processing file 1ngPBkRwDY1SEQ56NU635BjHofIUh8_Z6 003 Why Java 11_es.srt
Processing file 1niWezvMhQafK_qOQUm1m26r66wYdQnfL 003 Why Java 11_es.vtt
Processing file 1o1lDjmMM-BoIIPXrPmDoXd8TJVfmoy4k 003 Why Java 11_ja.srt
Processing file 1o4MBngYABKXtkBjEDd67oXk6v9xZWLWQ 003 Why Java 11_ja.vtt
Processing file 1ni_D2uTgojiMZZTNNWj2OFqulBVIpcHV 003 Why Java 11_pt.srt
Processing file 1nliXcX0EPdym7fZDXj4hYSRJsUqw3qSS 003 Why Java 11_pt.vtt
Processing file 1nY2y_uUdUadgWm7Mk9zCUyUaFGTgRU0m 003 Why Java 11.mp4
Processing file 1oBqEpFm2_0L9K_bx9iQJjDGGcZLGbo0F 004 Java Certification - Which Courses do I need_en.srt
Processing file 1oDzBJF2397zRxJD8mMQ_G-BDJSX8ZSsF 004 Java Certification - Which Courses do I need_en.vtt
Processing file 1ohgsv6nRcyFdkJPGegDuYtgyeggn1Tn8 004 Java Certification - Which Courses do I need_es.srt
Processing file 1oik-cKCPWz48lSx31sfQi7_9xWwCAT5J 004 Java Certification - Which Courses do I need_es.vtt
Processing file 1oOJehIqYbzi5UKYaCGvEbxfmXQ7JOvjm 004 Java Certification - Which Courses do I need_ja.srt
Processing file 1oUV1IGQa1odiAJeTeGLWYwHaHup8ja_v 004 Java Certification - Which Courses do I need_ja.vtt
Processing file 1oFv67vIjhJGtN4_HD1Ajc14q1fXlOShZ 004 Java Certification - Which Courses do I need_pt.srt
Processing file 1oKQNN2zCoI0vXTC19nvK5EYO-ocikFAP 004 Java Certification - Which Courses do I need_pt.vtt
Processing file 1oFCHuNF_MimE-EO2Ydmc3JnZGhxavrei 004 Java Certification - Which Courses do I need.mp4
Processing file 1opDm3VP8gei1rXVYMyTa2xgj3jT5kvWk 005 Java-SE-11-Developer-Exam-Number-1Z0-819.url
Processing file 1pK1Zl_0d97woVbMQFaxqRblP3sxtXIMq 005 Oracle Exam Codes - What you need to Know_en.srt
Processing file 1pRSf5PFk9fLqdtjaZuSGXqTEdeYKz43s 005 Oracle Exam Codes - What you need to Know_en.vtt
Processing file 1ox8359E_5orcgPr2rEk46ZLb7gWUISUC 005 Oracle Exam Codes - What you need to Know_es.srt
Processing file 1oxKWetB-QfJLMuomhWrRQg5qOiGlaoRX 005 Oracle Exam Codes - What you need to Know_es.vtt
Processing file 1opEOj4IL4LCIWEt34ohVW-uYQh6d-L1g 005 Oracle Exam Codes - What you need to Know_ja.srt
Processing file 1orZBbTr_mIwwmBylrGTsyusx3tWNdK_S 005 Oracle Exam Codes - What you need to Know_ja.vtt
Processing file 1p2MBoVQ2_h8rY3SLpwf370r6GNbwVIdC 005 Oracle Exam Codes - What you need to Know_pt.srt
Processing file 1pCzqcl5wGtWnFO378uqChNxJ1laU5gZr 005 Oracle Exam Codes - What you need to Know_pt.vtt
Processing file 1pT3Li_fAy0t-U8bkfzaqcIa76rO9CGFH 005 Oracle Exam Codes - What you need to Know.mp4
Processing file 1onUi0cy7tEwP7hy2_aJ-p6jsUgxjEhlK 005 Upgrade-OCP-Java-6-7-8-to-Java-SE-11-Developer-Exam-Number-1Z0-817.url
Processing file 1pvYXkpZqv6i9UMP9PAOkklEDq59YRawa 006 Which Vendors JDK 11 Should you Use_en.srt
Processing file 1q4Fu8q0m7TqqHQQohD4OFZ0-CpyrODva 006 Which Vendors JDK 11 Should you Use_en.vtt
Processing file 1pVTp28PK46azTNK2AkRRtCu0WWOEcmUC 006 Which Vendors JDK 11 Should you Use_es.srt
Processing file 1pXv_Ako36Vhzw_tIf7sV6xHn0LYjx-rw 006 Which Vendors JDK 11 Should you Use_es.vtt
Processing file 1pTO6I2JhP8Xb7765zTc3udiJ57jfq_63 006 Which Vendors JDK 11 Should you Use_ja.srt
Retrieving folder contents completed
Building directory structure
Building directory structure completed
Downloading...
From: https://drive.google.com/uc?id=1kYFFWONUAWQO0eLG1m6fQtYhCdhFF__T
To: /home/user/Data/01 - Creating a Simple Java Program/001 Introduction_en.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.13k/3.13k [00:00<00:00, 14.6MB/s]
Downloading...
From: https://drive.google.com/uc?id=1kb0ZFtV_52l4lw5p09Pqth5miRn3bBYd
To: /home/user/Data/01 - Creating a Simple Java Program/001 Introduction_en.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.02k/3.02k [00:00<00:00, 3.78MB/s]
Downloading...
From: https://drive.google.com/uc?id=1lZAbrCi0JFQm-8z90zkHhSexpnEHmCYq
To: /home/user/Data/01 - Creating a Simple Java Program/001 Introduction_es.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.25k/3.25k [00:00<00:00, 7.33MB/s]
Downloading...
From: https://drive.google.com/uc?id=1laJV7z7UmoR6NUgeVkr1gVEME_uIQmCH
To: /home/user/Data/01 - Creating a Simple Java Program/001 Introduction_es.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.83k/2.83k [00:00<00:00, 8.09MB/s]
Downloading...
From: https://drive.google.com/uc?id=1lVnXrasy6gLmSL0WPGWDVGLCOOlTdvkb
To: /home/user/Data/01 - Creating a Simple Java Program/001 Introduction_ja.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.28k/3.28k [00:00<00:00, 8.32MB/s]
Downloading...
From: https://drive.google.com/uc?id=1lXYFHgiCHg1_zUlgW8ciCJ1aIJ8F1QzG
To: /home/user/Data/01 - Creating a Simple Java Program/001 Introduction_ja.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.95k/2.95k [00:00<00:00, 3.54MB/s]
Downloading...
From: https://drive.google.com/uc?id=1kHzDRLH83NabU6fKHBI96dbz78x-Q9rs
To: /home/user/Data/01 - Creating a Simple Java Program/001 Introduction_pt.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.28k/3.28k [00:00<00:00, 3.76MB/s]
Downloading...
From: https://drive.google.com/uc?id=1kIQ1LmV5pLmcDl0Kgm_2OveLo2wSqT0g
To: /home/user/Data/01 - Creating a Simple Java Program/001 Introduction_pt.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.87k/2.87k [00:00<00:00, 7.38MB/s]
Downloading...
From: https://drive.google.com/uc?id=1kdPqPtXY6LP2zNPrlpz3iYSYC0AQNxNZ
To: /home/user/Data/01 - Creating a Simple Java Program/001 Introduction.mp4
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11.2M/11.2M [00:01<00:00, 7.25MB/s]
Downloading...
From: https://drive.google.com/uc?id=1lm9BKCtKkjQHn3b3aV5FJ7m7x-k--8ne
To: /home/user/Data/01 - Creating a Simple Java Program/002 Course Info_en.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5.47k/5.47k [00:00<00:00, 4.37MB/s]
Downloading...
From: https://drive.google.com/uc?id=1lojhYyc71WYMy8rhQ7ACk4Zp9mh8Nype
To: /home/user/Data/01 - Creating a Simple Java Program/002 Course Info_en.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5.26k/5.26k [00:00<00:00, 29.2MB/s]
Downloading...
From: https://drive.google.com/uc?id=1ld3iH_nbMWg4GhrhoSyQXbuIWBbeXuZS
To: /home/user/Data/01 - Creating a Simple Java Program/002 Course Info.mp4
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 17.3M/17.3M [00:02<00:00, 8.22MB/s]
Downloading...
From: https://drive.google.com/uc?id=1m34ZrMwqNQ9joFm_CvUGO_o3lVDkL4_3
To: /home/user/Data/01 - Creating a Simple Java Program/002 Java-SE-11-Developer-Exam-Number-1Z0-819.url
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 74.0/74.0 [00:00<00:00, 221kB/s]
Downloading...
From: https://drive.google.com/uc?id=1o-s_SWFtKTaBCdsQY2r9XbwqVKipIgRl
To: /home/user/Data/01 - Creating a Simple Java Program/003 Dont-ever-put-a-non-Java-LTS-release-into-production.url
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 114/114 [00:00<00:00, 350kB/s]
Downloading...
From: https://drive.google.com/uc?id=1o--b2Ewvx0FEozDAp6n2_WtPmop2vE3H
To: /home/user/Data/01 - Creating a Simple Java Program/003 Java-version-history.url
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 74.0/74.0 [00:00<00:00, 220kB/s]
Downloading...
From: https://drive.google.com/uc?id=1o1gU8o3Oqt4ebf-NqX9__koD9G0glzSs
To: /home/user/Data/01 - Creating a Simple Java Program/003 Oracle-Java-SE-Support-Roadmap.url
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 93.0/93.0 [00:00<00:00, 273kB/s]
Downloading...
From: https://drive.google.com/uc?id=1nZSMjS21U2rwui4AhfTsRC6sD2RlPGRa
To: /home/user/Data/01 - Creating a Simple Java Program/003 Why Java 11_en.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.69k/6.69k [00:00<00:00, 2.03MB/s]
Downloading...
From: https://drive.google.com/uc?id=1nePnts-Vj8ylCxpHuOcEGnyHGIhnJ4fy
To: /home/user/Data/01 - Creating a Simple Java Program/003 Why Java 11_en.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.42k/6.42k [00:00<00:00, 14.6MB/s]
Downloading...
From: https://drive.google.com/uc?id=1ngPBkRwDY1SEQ56NU635BjHofIUh8_Z6
To: /home/user/Data/01 - Creating a Simple Java Program/003 Why Java 11_es.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7.01k/7.01k [00:00<00:00, 15.9MB/s]
Downloading...
From: https://drive.google.com/uc?id=1niWezvMhQafK_qOQUm1m26r66wYdQnfL
To: /home/user/Data/01 - Creating a Simple Java Program/003 Why Java 11_es.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.08k/6.08k [00:00<00:00, 14.5MB/s]
Downloading...
From: https://drive.google.com/uc?id=1o1lDjmMM-BoIIPXrPmDoXd8TJVfmoy4k
To: /home/user/Data/01 - Creating a Simple Java Program/003 Why Java 11_ja.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7.31k/7.31k [00:00<00:00, 15.3MB/s]
Downloading...
From: https://drive.google.com/uc?id=1o4MBngYABKXtkBjEDd67oXk6v9xZWLWQ
To: /home/user/Data/01 - Creating a Simple Java Program/003 Why Java 11_ja.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.60k/6.60k [00:00<00:00, 2.07MB/s]
Downloading...
From: https://drive.google.com/uc?id=1ni_D2uTgojiMZZTNNWj2OFqulBVIpcHV
To: /home/user/Data/01 - Creating a Simple Java Program/003 Why Java 11_pt.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7.03k/7.03k [00:00<00:00, 27.5MB/s]
Downloading...
From: https://drive.google.com/uc?id=1nliXcX0EPdym7fZDXj4hYSRJsUqw3qSS
To: /home/user/Data/01 - Creating a Simple Java Program/003 Why Java 11_pt.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.10k/6.10k [00:00<00:00, 13.3MB/s]
Downloading...
From: https://drive.google.com/uc?id=1nY2y_uUdUadgWm7Mk9zCUyUaFGTgRU0m
To: /home/user/Data/01 - Creating a Simple Java Program/003 Why Java 11.mp4
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30.1M/30.1M [00:03<00:00, 8.06MB/s]
Downloading...
From: https://drive.google.com/uc?id=1oBqEpFm2_0L9K_bx9iQJjDGGcZLGbo0F
To: /home/user/Data/01 - Creating a Simple Java Program/004 Java Certification - Which Courses do I need_en.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.30k/4.30k [00:00<00:00, 4.84MB/s]
Downloading...
From: https://drive.google.com/uc?id=1oDzBJF2397zRxJD8mMQ_G-BDJSX8ZSsF
To: /home/user/Data/01 - Creating a Simple Java Program/004 Java Certification - Which Courses do I need_en.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.13k/4.13k [00:00<00:00, 2.94MB/s]
Downloading...
From: https://drive.google.com/uc?id=1ohgsv6nRcyFdkJPGegDuYtgyeggn1Tn8
To: /home/user/Data/01 - Creating a Simple Java Program/004 Java Certification - Which Courses do I need_es.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.45k/4.45k [00:00<00:00, 9.90MB/s]
Downloading...
From: https://drive.google.com/uc?id=1oik-cKCPWz48lSx31sfQi7_9xWwCAT5J
To: /home/user/Data/01 - Creating a Simple Java Program/004 Java Certification - Which Courses do I need_es.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.86k/3.86k [00:00<00:00, 9.25MB/s]
Downloading...
From: https://drive.google.com/uc?id=1oOJehIqYbzi5UKYaCGvEbxfmXQ7JOvjm
To: /home/user/Data/01 - Creating a Simple Java Program/004 Java Certification - Which Courses do I need_ja.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.41k/4.41k [00:00<00:00, 35.2MB/s]
Downloading...
From: https://drive.google.com/uc?id=1oUV1IGQa1odiAJeTeGLWYwHaHup8ja_v
To: /home/user/Data/01 - Creating a Simple Java Program/004 Java Certification - Which Courses do I need_ja.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.01k/4.01k [00:00<00:00, 10.4MB/s]
Downloading...
From: https://drive.google.com/uc?id=1oFv67vIjhJGtN4_HD1Ajc14q1fXlOShZ
To: /home/user/Data/01 - Creating a Simple Java Program/004 Java Certification - Which Courses do I need_pt.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.48k/4.48k [00:00<00:00, 3.39MB/s]
Downloading...
From: https://drive.google.com/uc?id=1oKQNN2zCoI0vXTC19nvK5EYO-ocikFAP
To: /home/user/Data/01 - Creating a Simple Java Program/004 Java Certification - Which Courses do I need_pt.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.90k/3.90k [00:00<00:00, 1.96MB/s]
Downloading...
From: https://drive.google.com/uc?id=1oFCHuNF_MimE-EO2Ydmc3JnZGhxavrei
To: /home/user/Data/01 - Creating a Simple Java Program/004 Java Certification - Which Courses do I need.mp4
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.2M/15.2M [00:01<00:00, 8.60MB/s]
Downloading...
From: https://drive.google.com/uc?id=1opDm3VP8gei1rXVYMyTa2xgj3jT5kvWk
To: /home/user/Data/01 - Creating a Simple Java Program/005 Java-SE-11-Developer-Exam-Number-1Z0-819.url
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 74.0/74.0 [00:00<00:00, 215kB/s]
Downloading...
From: https://drive.google.com/uc?id=1pK1Zl_0d97woVbMQFaxqRblP3sxtXIMq
To: /home/user/Data/01 - Creating a Simple Java Program/005 Oracle Exam Codes - What you need to Know_en.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.90k/3.90k [00:00<00:00, 11.9MB/s]
Downloading...
From: https://drive.google.com/uc?id=1pRSf5PFk9fLqdtjaZuSGXqTEdeYKz43s
To: /home/user/Data/01 - Creating a Simple Java Program/005 Oracle Exam Codes - What you need to Know_en.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.75k/3.75k [00:00<00:00, 1.70MB/s]
Downloading...
From: https://drive.google.com/uc?id=1ox8359E_5orcgPr2rEk46ZLb7gWUISUC
To: /home/user/Data/01 - Creating a Simple Java Program/005 Oracle Exam Codes - What you need to Know_es.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.06k/4.06k [00:00<00:00, 8.15MB/s]
Downloading...
From: https://drive.google.com/uc?id=1oxKWetB-QfJLMuomhWrRQg5qOiGlaoRX
To: /home/user/Data/01 - Creating a Simple Java Program/005 Oracle Exam Codes - What you need to Know_es.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.53k/3.53k [00:00<00:00, 4.77MB/s]
Downloading...
From: https://drive.google.com/uc?id=1opEOj4IL4LCIWEt34ohVW-uYQh6d-L1g
To: /home/user/Data/01 - Creating a Simple Java Program/005 Oracle Exam Codes - What you need to Know_ja.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.90k/3.90k [00:00<00:00, 1.30MB/s]
Downloading...
From: https://drive.google.com/uc?id=1orZBbTr_mIwwmBylrGTsyusx3tWNdK_S
To: /home/user/Data/01 - Creating a Simple Java Program/005 Oracle Exam Codes - What you need to Know_ja.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.52k/3.52k [00:00<00:00, 1.85MB/s]
Downloading...
From: https://drive.google.com/uc?id=1p2MBoVQ2_h8rY3SLpwf370r6GNbwVIdC
To: /home/user/Data/01 - Creating a Simple Java Program/005 Oracle Exam Codes - What you need to Know_pt.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.05k/4.05k [00:00<00:00, 34.1MB/s]
Downloading...
From: https://drive.google.com/uc?id=1pCzqcl5wGtWnFO378uqChNxJ1laU5gZr
To: /home/user/Data/01 - Creating a Simple Java Program/005 Oracle Exam Codes - What you need to Know_pt.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.52k/3.52k [00:00<00:00, 4.67MB/s]
Downloading...
From: https://drive.google.com/uc?id=1pT3Li_fAy0t-U8bkfzaqcIa76rO9CGFH
To: /home/user/Data/01 - Creating a Simple Java Program/005 Oracle Exam Codes - What you need to Know.mp4
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8.92M/8.92M [00:01<00:00, 7.83MB/s]
Downloading...
From: https://drive.google.com/uc?id=1onUi0cy7tEwP7hy2_aJ-p6jsUgxjEhlK
To: /home/user/Data/01 - Creating a Simple Java Program/005 Upgrade-OCP-Java-6-7-8-to-Java-SE-11-Developer-Exam-Number-1Z0-817.url
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 113/113 [00:00<00:00, 288kB/s]
Downloading...
From: https://drive.google.com/uc?id=1pvYXkpZqv6i9UMP9PAOkklEDq59YRawa
To: /home/user/Data/01 - Creating a Simple Java Program/006 Which Vendors JDK 11 Should you Use_en.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.25k/2.25k [00:00<00:00, 2.48MB/s]
Downloading...
From: https://drive.google.com/uc?id=1q4Fu8q0m7TqqHQQohD4OFZ0-CpyrODva
To: /home/user/Data/01 - Creating a Simple Java Program/006 Which Vendors JDK 11 Should you Use_en.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.17k/2.17k [00:00<00:00, 1.09MB/s]
Downloading...
From: https://drive.google.com/uc?id=1pVTp28PK46azTNK2AkRRtCu0WWOEcmUC
To: /home/user/Data/01 - Creating a Simple Java Program/006 Which Vendors JDK 11 Should you Use_es.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.33k/2.33k [00:00<00:00, 5.91MB/s]
Downloading...
From: https://drive.google.com/uc?id=1pXv_Ako36Vhzw_tIf7sV6xHn0LYjx-rw
To: /home/user/Data/01 - Creating a Simple Java Program/006 Which Vendors JDK 11 Should you Use_es.vtt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.03k/2.03k [00:00<00:00, 4.44MB/s]
Downloading...
From: https://drive.google.com/uc?id=1pTO6I2JhP8Xb7765zTc3udiJ57jfq_63
To: /home/user/Data/01 - Creating a Simple Java Program/006 Which Vendors JDK 11 Should you Use_ja.srt
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.20k/2.20k [00:00<00:00, 3.77MB/s]
Download completed

Expected Behavior

Download completely entire content in the folder

To Reproduce

image

@ilentt ilentt added the bug for issue label Apr 22, 2024
@ilentt ilentt changed the title GDownload don't retrieve and don't download entire folder contents GDown don't retrieve and don't download entire folder contents Apr 22, 2024
@Kaushik-Iyer-skima
Copy link

It has a limit of downloading 50 files from a folder link

@ilentt
Copy link
Author

ilentt commented Apr 29, 2024

It has a limit of downloading 50 files from a folder link

Maybe, although I already considered 50 files limitation by below command but It still do not work as my expectation. Do you have any idea to solve this problem?

// Folder with count of files more than 50
gdown <google_drive_folder_url> -O <location_for_download> --folder --remaining-ok

https://medium.com/@saurabh.sde/fast-and-easy-ways-to-download-large-google-drive-files-or-folders-ad9985a04ed9

@Kaushik-Iyer-skima
Copy link

image
the --remaining-ok flag just allows you to download the first 50 files without giving an error I think. There is no way to download more than 50 files in a folder using gdown

@ilentt
Copy link
Author

ilentt commented Apr 29, 2024

Can we split the list file into several part, each part have maximum 50 files. By this ways we can download whole folder regardless how many file in folder. Why we can't do by this way?

@okkymabruri
Copy link

okkymabruri commented Apr 30, 2024

Can we split the list file into several part, each part have maximum 50 files. By this ways we can download whole folder regardless how many file in folder. Why we can't do by this way?

The reason only able to download 50 files is that the gdown library, by default, uses the "cookie" method to access Google Drive files, and Google Drive has a limitation of 50 for direct downloads using cookies. You can use the Google Drive API along to download >50 files with the google-api-python-client library.

https://stackoverflow.com/a/76740603

@mercifulboss
Copy link

Can we split the list file into several part, each part have maximum 50 files. By this ways we can download whole folder regardless how many file in folder. Why we can't do by this way?

The reason only able to download 50 files is that the gdown library, by default, uses the "cookie" method to access Google Drive files, and Google Drive has a limitation of 50 for direct downloads using cookies. You can use the Google Drive API along to download >50 files with the google-api-python-client library.

https://stackoverflow.com/a/76740603

Once you make the python file, what do you do?

@wkentaro
Copy link
Owner

Yes, 50 limit is hard set due to the behavior of Google Drive.

It returns the first 50 files, and gdown can't know what's the rest.

To resolve this, probably we need to use browser emulator like Selenium to let the Javascript to load the rest of files.
(Loading more than 50 works in Incognito mode in a browser)

@overcast07
Copy link

overcast07 commented Jul 10, 2024

Using the below URL format, it seems to be possible to list more than 50 files without using cookies or the API. The output is in plain HTML. I'm not sure whether this method is officially supported or deprecated.

https://drive.google.com/embeddedfolderview?id=16bB1g_gq7KDiJX2j9H323LyTxXjbg1S2

The main limitation I can see is that it takes a while for the server to generate the list (it may show more entries when you reload the page), and the page can render well before the folder has been fully indexed. The folder linked above contains 5,000 files, and it took several minutes for them all to be listed correctly. I don't know if there is a maximum number of files that can be shown.

Note that the order shown on the page also doesn't match the order in which the files were indexed, i.e. "empty_file_999" was indexed before "empty_file_1000", but the latter is shown at the top of the list.

@DaniDipp
Copy link

@overcast07 thank you so much for this. I used this to write a custom script to download every file in a folder, and it seems to work beautifully! Maybe something similar can be part of gdown in the future.

@hxhcreate
Copy link

@DaniDipp can this script recursively download all the files and subfolder in a specific folder?

@DaniDipp
Copy link

DaniDipp commented Aug 1, 2024

@hxhcreate not at the moment, but that should be relatively easy to implement. But this discussion isn't related to this ticket. The Gist has it's own comment section

@hxhcreate
Copy link

@DaniDipp Thanks for your code snippet and I have modify it to recursive version here
I wish gdown could support this tiny feature.

@fish4terrisa-MSDSM
Copy link

I added the support for utf-8 named folders at here
I wish oneday gdown will support this feature :-)

@krahets
Copy link

krahets commented Sep 23, 2024

We can list all the file IDs and corresponding file names in a Google Drive folder using Google Sheets's API script easily:

https://webapps.stackexchange.com/questions/88769/get-share-link-of-multiple-files-in-google-drive-to-put-in-spreadsheet

I modified the JS script to list the file IDs and names into distinct columns.

function myFunction() {
  var ss=SpreadsheetApp.getActiveSpreadsheet();
  var s=ss.getActiveSheet();
  var c=s.getActiveCell();
  var fldr=DriveApp.getFolderById("FOLDER_ID");
  var files=fldr.getFiles();
  var names=[];
  var ids=[];
  while (files.hasNext()) {
    f=files.next();
    names.push([f.getName()]);
    ids.push([f.getId()])
  }
  s.getRange(c.getRow(),c.getColumn(),names.length).setValues(ids);
  s.getRange(c.getRow(),c.getColumn() + 1,names.length).setValues(names);
  s.getRange(1, 1, s.getLastRow(), s.getLastColumn()).sort({column: c.getColumn() + 1, ascending: true});;
}

With all the file IDs and names, we can download them using gdown or Google developer OAuth 2.0(Use this when gdown doesn't work).

@junho2000
Copy link

@DaniDipp @hxhcreate @fish4terrisa-MSDSM Thank you guys!

@ankitshah009
Copy link

Wow this is amazing! Thank you @DaniDipp @hxhcreate @fish4terrisa-MSDSM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug for issue
Projects
None yet
Development

No branches or pull requests