Git Product home page Git Product logo

Comments (15)

KoalaBear84 avatar KoalaBear84 commented on June 6, 2024 2

I've updated it, they really really made a mess of it. It was like 18 steps, now it's 24.. Or.. I created a new 'workaround' for this with the Quickstart option (only 6 steps, no additional input needed).

https://github.com/KoalaBear84/OpenDirectoryDownloader/blob/master/README.md

Please check it out and let me know!

from opendirectorydownloader.

KoalaBear84 avatar KoalaBear84 commented on June 6, 2024

Hmm.. You are right, looks like I broke it, or Google did. I'll investigate!

from opendirectorydownloader.

KoalaBear84 avatar KoalaBear84 commented on June 6, 2024

No, my OpenDirectoryDownloader.GoogleDrive.json file was empty.

Looks like you have another issue, that this file does not contain this:

{
  "installed": {
	... Your values
  }
}

Could you check that out?

from opendirectorydownloader.

leodomi avatar leodomi commented on June 6, 2024

My OpenDirectoryDownloader.GoogleDrive.json file contain this :

{
  "type": "service_account",
  "project_id": "XXXXXXXXXXXXXXXXXXX",
  "private_key_id": "XXXXXXXXXXXXXXXXXXXXX",
  "private_key": "-----BEGIN PRIVATE KEY-----\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n-----END PRIVATE KEY-----\n",
  "client_email": "XXXXXXXXXXXXXXXXXXX",
  "client_id": "XXXXXXXXXXXXXXXXXXX",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/serviceaccountXXXXXXXXXXXXXXXXXXX"
}

Indeed I don't have the "installed" line, but I have followed the instructions to generate this json, so I don't know why that value isn't in my file.

from opendirectorydownloader.

KoalaBear84 avatar KoalaBear84 commented on June 6, 2024

Wow, why doesn't Github notified me of your answer.

Hmm, that's strange. I guess Google has updated the generated "credentials" file structure..

Could you try the following format (fill in your values at the XXXX's).

{
  "installed": {
    "client_id": "XXXXXXXXXXXXXXXXXX",
    "project_id": "XXXXXXXXXXXXXXXXXX",
    "auth_uri": "https://accounts.google.com/o/oauth2/auth",
    "token_uri": "https://oauth2.googleapis.com/token",
    "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
    "client_secret": "XXXXXXXXXXXXXXXXXX",
    "redirect_uris": [ "urn:ietf:wg:oauth:2.0:oob", "http://localhost" ]
  }
}

I'll try later to generate a new file to check if Google has changed their structure.

from opendirectorydownloader.

leodomi avatar leodomi commented on June 6, 2024

I tried the format you asked for, and I don't have the mistake anymore !

On the other hand, the application shows me that the indexing is finished, but all the values show 0 while the folder is not empty.

I tried with other gdrive folders, with a single file inside or other nested folders and the result is the same.

image

from opendirectorydownloader.

KoalaBear84 avatar KoalaBear84 commented on June 6, 2024

Hmm, that is not supposed to happen indeed.

I'll try the one myself later.

from opendirectorydownloader.

KoalaBear84 avatar KoalaBear84 commented on June 6, 2024

It is working as expected 😮

Url: https://drive.google.com/drive/folders...
Extension (Top 5) Files Size
.mkv 2,077 3.81 TiB
.flac 24,244 748.65 GiB
.pdf 38,140 279.71 GiB
.mp4 1,068 219.56 GiB
.iso 69 196.36 GiB
Dirs: 11,649 Ext: 166 Total: 175,545 Total: 5.87 TiB
Date (UTC): 2020-06-07 18:56:47 Time: 00:31:08

Could you check the OpenDirectoryDownloader.log ?

from opendirectorydownloader.

leodomi avatar leodomi commented on June 6, 2024

Here's a screenshot of the log and the file if you need it :

image

OpenDirectoryDownloader.log

from opendirectorydownloader.

KoalaBear84 avatar KoalaBear84 commented on June 6, 2024

Thanks, looks like it is another error. And it looks like I didn't correctly handle errors on that part.

Made a new version, please try this one and see what error it really is.

https://github.com/KoalaBear84/OpenDirectoryDownloader/releases/tag/v1.4.0.9

from opendirectorydownloader.

leodomi avatar leodomi commented on June 6, 2024

I tested with version "v1.4.0.9", and it worked fine :)

I didn't get any error message this time and I didn't change anything in my OpenDirectoryDownloader.GoogleDrive.json.

In my OpenDirectoryDownloader.GoogleDrive.json generated at the beginning I didn't have a "secret_client" line.

To get the "secret_client" I had to create an OAuth 2.0 client ID instead of a Service Account, and I tested a scan directly after creating this ID and completing the OpenDirectoryDownloader.GoogleDrive.json as previously asked.

Maybe there is a delay before you can use the API after the creation of these identifiers?

Unfortunately I don't have any error messages that explain why it didn't work before, but it works now, thanks!

from opendirectorydownloader.

AnmolTomer avatar AnmolTomer commented on June 6, 2024

@leodomi @KoalaBear84 Can anyone please help me with Getting secret_client ? I am on the latest version, I have OpenDirectoryDownloader.GoogleDrive.json file with the content I got from json credentials file from console.cloud site. I am on the OAuth Consent Screen and there are too many options to be filled in there ? I am having doubts. Would really appreciate any help I can get.

from opendirectorydownloader.

leodomi avatar leodomi commented on June 6, 2024

English is not my first language so the name of tabs and other things may not be accurate

Choose "User type" --> Internal
Then in the next page, just put a name in the textbox under "internal", and then you can save at the bottom
Go back to "credential", "create a credential", OAuth ID CLient", "desktop app (?) (the 6th choice in the list), "create"

And you will have your secret client

from opendirectorydownloader.

AnmolTomer avatar AnmolTomer commented on June 6, 2024

@KoalaBear84 I just checked, the updated long method in README it works , without any issues.

  • Detailed version of how I verified: I followed the longer method present in Google Drive section of README. Everything is correct. I tested on this public link https://drive.google.com/drive/folders/1cH7YbnPAh8IOxjf7FBMgCTp9VtayjqCK.
  • On running for the first time, I entered the GDrive public link given above, I got the OAuth prompt with a warning that app isn't verified, proceed only if you are aware, so I advanced, selected a google account and after that I got the total size of the directory with accurate description of file items as well.
  • Here is a screenshot of it in action:

image

from opendirectorydownloader.

KoalaBear84 avatar KoalaBear84 commented on June 6, 2024

Thanks @AnmolTomer for your good check and report. I'll close the issue 👍

from opendirectorydownloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.