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

script runs (eventually hits API quota) but no songs downloaded #60

Closed
chalda opened this issue Oct 20, 2019 · 6 comments
Closed

script runs (eventually hits API quota) but no songs downloaded #60

chalda opened this issue Oct 20, 2019 · 6 comments
Labels

Comments

@chalda
Copy link

chalda commented Oct 20, 2019

OS: win10
run with spotify_dl.exe -l https://open.spotify.com/playlist/44u43xW485DUdqZVApCANu?si=eMaxtbcgRPCfM6WdcaoYRQ -o .\SpotifyMusic\

seems to work, i get a lot of messages like:

INFO: 2019-10-20 15:19:48,226 - fetch_youtube_url - Searching for Recreational Beats - Stillhead
INFO: 2019-10-20 15:19:48,227 - method - URL being requested: GET https://www.googleapis.com/youtube/v3/search?q=Recreational+Beats+-+Stillhead&part=id%2C+snippet&key=<api_key_redacted>&alt=json
INFO: 2019-10-20 15:19:48,649 - _retrieve_discovery_doc - URL being requested: GET https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest

eventually hits google API quota. but then i checked the folder and dont see any actual music in it. What could be wrong?

@SathyaBhat
Copy link
Owner

the script first uses the Google APIs to build up a list of songs to download and then downloads them - it is possible you hit the API quota due to the sheer number of songs. What error messages are you seeing when it fails?

@chalda
Copy link
Author

chalda commented Nov 8, 2019

yeah thats probably it. this is a playlist of 1k songs (Discover weekly archive 😂)
would it makes sense to change the arch to query and download one song at a time this way i can actually donwload the playlist after a few runs as oppose to never getting to the end of the "initial" phase. Do the gAPI results get cached into anything? otherwise any decently large playlist will never get over the initial gAPI query hump

@SathyaBhat
Copy link
Owner

Turns out the quota limits have been drastically reduced

https://stackoverflow.com/questions/15568405/youtube-api-limitations/15580411#15580411

UPDATE: Decreased the quota numbers from 1M to 10K per day as of January 11, 2019.

that's why we're running out of quota so fast.

@barda123
Copy link

barda123 commented Feb 1, 2020

I have just run into this same problem (attempting to get an 800-song playlist). Is there a workaround which would allow either (a) splitting the playlist up or (b) downloading 1 song at a time rather than processing the whole playlist first?

@SathyaBhat
Copy link
Owner

@barda123 I've been thinking of ways of getting around this - having a separate key for read/search operations might help.

@SathyaBhat
Copy link
Owner

I've updated to remove my custom YT search in favour of youtube-dl which was anyway doing the heavy lifting.

Update the app

pip install spotify_dl --upgrade

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

No branches or pull requests

3 participants