Spotify-downloader: help me download songs from spotify

Created on 25 Feb 2020  路  3Comments  路  Source: spotDL/spotify-downloader

What is the purpose of your issue?

  • [x ] Bug
  • [ ] Feature Request
  • [ ] Question
  • [ ] Other

Logroot@mint:~/git/spotify-downloader# spotdl --song https://open.spotify.com/track/1DhJgI2oAsDeDVSD5TNPCF

ERROR: 6IPXpHEV4JM: YouTube said: This video is unavailable.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 785, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1623, in _real_extract
expected=True, video_id=video_id)
youtube_dl.utils.ExtractorError: 6IPXpHEV4JM: YouTube said: This video is unavailable.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pafy/backend_youtube_dl.py", line 40, in _fetch_basic
self._ydl_info = ydl.extract_info(self.videoid, download=False)
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
self.report_error(compat_str(e), e.format_traceback())
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 613, in report_error
self.trouble(error_message, tb)
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 583, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: 6IPXpHEV4JM: YouTube said: This video is unavailable.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/spotdl", line 11, in
load_entry_point('spotdl==1.2.4', 'console_scripts', 'spotdl')()
File "/usr/local/lib/python3.6/dist-packages/spotdl-1.2.4-py3.6.egg/spotdl/spotdl.py", line 68, in main
File "/usr/local/lib/python3.6/dist-packages/spotdl-1.2.4-py3.6.egg/spotdl/spotdl.py", line 27, in match_args
File "/usr/local/lib/python3.6/dist-packages/spotdl-1.2.4-py3.6.egg/spotdl/downloader.py", line 98, in __init__
File "/usr/local/lib/python3.6/dist-packages/spotdl-1.2.4-py3.6.egg/spotdl/youtube_tools.py", line 83, in match_video_and_metadata
File "/usr/local/lib/python3.6/dist-packages/spotdl-1.2.4-py3.6.egg/spotdl/youtube_tools.py", line 45, in go_pafy
File "/usr/local/lib/python3.6/dist-packages/pafy/pafy.py", line 124, in new
return Pafy(url, basic, gdata, size, callback, ydl_opts=ydl_opts)
File "/usr/local/lib/python3.6/dist-packages/pafy/backend_youtube_dl.py", line 31, in __init__
super(YtdlPafy, self).__init__(args, *kwargs)
File "/usr/local/lib/python3.6/dist-packages/pafy/backend_shared.py", line 97, in __init__
self._fetch_basic()
File "/usr/local/lib/python3.6/dist-packages/pafy/backend_youtube_dl.py", line 43, in _fetch_basic
raise IOError(str(e).replace('YouTube said', 'Youtube says'))
OSError: ERROR: 6IPXpHEV4JM: Youtube says: This video is unavailable.
root@mint:~/git/spotify-downloader#

Most helpful comment

Testing the song download with my software and worked for me, so the error is on your end. I'll paste here what I told someone else with errors. Always try this method to troubleshoot download errors.

Run the following commands in cmd. What versions do you have installed of the following programs? (this is assuming all items are in the same folder as is my case for spotdl, youtube-dl, ffmpeg, and python)
C:\Users\ ***\AppData\Local\Programs\Python\Python38-32\Scripts>python --version
Python 3.8.1

C:\Users\ ***\AppData\Local\Programs\Python\Python38-32\Scripts>spotdl --version
spotdl 1.2.4

C:\Users\ ***\AppData\Local\Programs\Python\Python38-32\Scripts>youtube-dl --version
2020.02.16

C:\Users\ ***\AppData\Local\Programs\Python\Python38-32\Scripts>ffmpeg --version
ffmpeg version git-2020-02-16-8578433 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122

If you get anything other than this run pip install -U _youtube-dl_ (or pip3 install -U _youtube-dl_). Substitute youtube-dl for whatever program is out of date

All 3 comments

Testing the song download with my software and worked for me, so the error is on your end. I'll paste here what I told someone else with errors. Always try this method to troubleshoot download errors.

Run the following commands in cmd. What versions do you have installed of the following programs? (this is assuming all items are in the same folder as is my case for spotdl, youtube-dl, ffmpeg, and python)
C:\Users\ ***\AppData\Local\Programs\Python\Python38-32\Scripts>python --version
Python 3.8.1

C:\Users\ ***\AppData\Local\Programs\Python\Python38-32\Scripts>spotdl --version
spotdl 1.2.4

C:\Users\ ***\AppData\Local\Programs\Python\Python38-32\Scripts>youtube-dl --version
2020.02.16

C:\Users\ ***\AppData\Local\Programs\Python\Python38-32\Scripts>ffmpeg --version
ffmpeg version git-2020-02-16-8578433 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122

If you get anything other than this run pip install -U _youtube-dl_ (or pip3 install -U _youtube-dl_). Substitute youtube-dl for whatever program is out of date

Thanks @xelam93 running pip install -U youtube-dl solved this issue for me

@xelam93 Thank you for the help! Y'all need to update youtube-dl as mentioned.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MangoTornado picture MangoTornado  路  6Comments

GUI
adrcotfas picture adrcotfas  路  5Comments

loftwah picture loftwah  路  5Comments

marinabar picture marinabar  路  4Comments

Maxino22 picture Maxino22  路  4Comments