Closed ritiek closed 4 years ago
One way to fix this would be to add your own YouTube API key in config.yml.
One way to fix this would be to add your own YouTube API key in config.yml.
Otherwise #672 (with #674 as follow-up) will skip API specific metadata.
What is the purpose of your issue?
Description
It seems like YouTube has lately messed with API keys and newer video uploads no longer download properly and instead raise an error. See log.
Log
$ spotdl -s "https://www.youtube.com/watch?v=367XrMBcb54"
```bash $ spotdl -s "https://www.youtube.com/watch?v=367XrMBcb54" INFO: Track not found on Spotify, falling back on YouTube metadata Traceback (most recent call last): File "/home/ritiek/.local/lib/python3.6/site-packages/pafy/util.py", line 34, in call_gdata data = g.opener.open(url).read().decode('utf-8') File "/usr/lib/python3.6/urllib/request.py", line 532, in open response = meth(req, response) File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.6/urllib/request.py", line 570, in error return self._call_chain(*args) File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(*args) File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ritiek/.local/bin/spotdl", line 8, inRelevant issues: