Giter Site home page Giter Site logo

spotdl / spotify-downloader Goto Github PK

View Code? Open in Web Editor NEW
15.0K 187.0 1.4K 143.72 MB

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).

Home Page: https://spotdl.readthedocs.io/en/latest/

License: MIT License

Python 99.54% Shell 0.29% Dockerfile 0.17%
mp3 spotify download-music music song-lyrics song youtube-music playlists spotdl spotdl-cli

spotify-downloader's People

Contributors

aareon avatar akatenshi avatar aklajnert avatar aniketp04 avatar asandikci avatar chew-z avatar egndz avatar georgewoodall82 avatar jcs090218 avatar kadaliao avatar linusg avatar mahasvan avatar manveerxyz avatar marcorfilacarreras avatar maxbachmann avatar mello-yello avatar ns23 avatar othyn avatar phcreery avatar pithuene avatar rimurum avatar ritiek avatar russellbradley avatar s1as3r avatar sdhutchins avatar sigill avatar silverarmor avatar silverfeelin avatar vn-ki avatar xnetcat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spotify-downloader's Issues

Song title that's the same as the album title will be downloaded as full album

When downloading, I've noticed something very strange, let's say you have an album titled [TITLE], generally a lot of these albums will contain a song with the same title. But when this link is used with the program it will actually instead of downloading just that [TITLE].mp3 song, will download the entire [TITLE] album and combine it into a single .mp3. I've noticed this on multiple occurrences. If this can be solved that'd be amazing, I love this tool very much.

Unable to download songs

Hi
I followed the instructions as listed on the page and here is a copy of the error I get:

Enter a song/cmd: adele hello

Traceback (most recent call last):
File "spotdl.py", line 202, in
searchYT(None)
File "spotdl.py", line 28, in searchYT
first_result = items_parse.find(attrs={'class':'yt-uix-tile-link'})['href']
TypeError: 'NoneType' object has no attribute 'getitem'

I am on OSX- so I had to used homebrew to install libav tools - could that be an issue in this?

Can not find downloaded songs

I used your script in a chrooted Debian enviorment on an android device.
But I unfortunately can't fint the songs (that were downloaded properly)
Using python 3.x tho so maybe it didn't download properly and didn't report(?)

InsecurePlatformWarning

It downloaded only one song.
Before and after the download there are these errors.

Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
ailed to download song. Will retry after other songs.
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning

/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.

Using this in Windows 10 Bash

Download Bitrate?

Hi!

Just wondering, but how do we enable to highest possible quality downloading output? (eg 320kbps/320000 vs 1411kbps/1411000. Please let me know, as all these MP3's that are outputted wind up being 192kbps in quality.

Thanks,

-Constantine

Required Python module

On Debian 9 GNOME(Testing) i tryed to install and run Spotify-Downloader and i get this error:

$ sudo python spotdl.py 
[sudo] senha para pli: 
Traceback (most recent call last):
  File "spotdl.py", line 8, in <module>
    import eyed3
  File "/usr/local/lib/python2.7/dist-packages/eyed3/__init__.py", line 35, in <module>
    from .utils.log import log                                            # noqa
  File "/usr/local/lib/python2.7/dist-packages/eyed3/utils/__init__.py", line 23, in <module>
    import pathlib
ImportError: **No module named pathlib**

Where the module "pathlib" is not installed and i not saw that on "requirements.txt"

So after run

$ sudo pip install pathlib
Collecting pathlib
  Downloading pathlib-1.0.1.tar.gz (49kB)
    100% |████████████████████████████████| 51kB 625kB/s 
Building wheels for collected packages: pathlib
  Running setup.py bdist_wheel for pathlib ... done
  Stored in directory: /root/.cache/pip/wheels/2a/23/a5/d8803db5d631e9f391fe6defe982a238bf5483062eeb34e841
Successfully built pathlib
Installing collected packages: pathlib
Successfully installed pathlib-1.0.1

Now it works well

$ sudo python spotdl.py 


>> Enter a song/cmd: ^C

Exitting.. 

I hope that's be helpful.

YouTube-DL out of date error

When running your script this morning I found that over half of the songs in the playlist I loaded were erroring out with this:

ERROR: Signature extraction failed: Traceback (most recent call last): File "C:\Program Files (x86)\Python27\lib\site-packages\youtube_dl\extractor\youtube.py", line 1011, in _decrypt_signature video_id, player_url, s File "C:\Program Files (x86)\Python27\lib\site-packages\youtube_dl\extractor\youtube.py", line 925, in _extract_signature_function errnote='Download of %s failed' % player_url) File "C:\Program Files (x86)\Python27\lib\site-packages\youtube_dl\extractor\common.py", line 519, in _download_webpage res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query) File "C:\Program Files (x86)\Python27\lib\site-packages\youtube_dl\extractor\common.py", line 426, in _download_webpage_handle urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query) File "C:\Program Files (x86)\Python27\lib\site-packages\youtube_dl\extractor\common.py", line 406, in _request_webpage return self._downloader.urlopen(url_or_request) File "C:\Program Files (x86)\Python27\lib\site-packages\youtube_dl\YoutubeDL.py", line 2001, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "C:\Program Files (x86)\Python27\lib\urllib2.py", line 421, in open protocol = req.get_type() File "C:\Program Files (x86)\Python27\lib\urllib2.py", line 283, in get_type raise ValueError, "unknown url type: %s" % self.__original ValueError: unknown url type: /yts/jsbin/player-en_US-vflp0EuAP/base.js (caused by ValueError(u'unknown url type: /yts/jsbin/player-en_US-vflp0EuAP/base.js',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Failed to download song. Will retry after other songs.

Following the breadcrumbs I found the youtube-dl repo, downloaded the master, and overwrote those files into Python27\lib\site-packages\youtube_dl\ . Ran the script again and all the songs worked.
Youtube-DL Master

If anyone else is having this issue, you just need to update youtube-dl in the Python install folder.

Suggestion: Manual check mode

Loving the script, but I notice that some songs that are named very similarly are getting downloaded incorrectly sometimes. For example:

Song intended to download: Cinnamon Chasers - A New World
Song that was downloaded (another one of their songs): Cinnamon Chasers - The World Is Yours

I propose an idea: The script can be started with an option to go into something like a "Manual Mode" that causes it to ask the user at the beginning of each download if the song name it will proceed with downloading is actually correct. If the user replies with (N)o, then the next song in the Youtube list that the script is checking will then be prompted to the user. Upon a (Y)es, the script will proceed as usual, and then prompt on the next song.

This could be useful for getting past those situations where some songs are downloading the ads, or another song by the artist, or even something that is totally unrelated. Does this make sense? I'll clarify if not. Thank you for considering it.

TDEN frame being dropped

In the Fixing Meta-tags step while downloading songs using a Spotify link, I get the same warning always:-

WARNING:eyed3.id3.tag:TDEN frame being dropped due to conversion to v2.3

How do I fix this?

Installing the packages on windows

Hi.
I wanted the step by step in the first things since i'm using windows..
I'm stuck in the avconv thing. Really don't know how to do it....
Sorry for the inconvenience...

Installation for dumbies

I have windows 7 and i installed the exe version and everyone says its not working but saw that this one possibly works but i have no idea how to install it. Have a video on how to install it lol?

Re-write code base

The code has grown dramatically compared to the initial days of this script. I think we will be better off splitting the code into multiple files before it grows enormous and becomes hard to understand.

See #72 for progress.

The system cannot find the path specified.

When downloading from list.
Music subfolder is created.

  1. SongName
    3,140,437 Bytes [100.00%] received. Rate: [8912 KB/s]. ETA: [0 secs]
    Converting .m4a to mp3
    The system cannot find the path specified.
    Fixing meta-tags
    Failed to download song. Will retry after other songs.

This i am getting when cmd is executed normally and also with admin rights.

Peter

Not showing metadata

Doesn't replace any metadata or cover image. Also it leaves the files as" Adele_-_Hello " with the underscore instead of a space.

Files are created as root user

This means some file explorers cannot delete the music files or rename them.
Solution, use chown after creating the mp3 files and music folder:

if not os.path.exists("Music"):
	os.makedirs("Music")
	os.chown('Music',int(os.environ['SUDO_UID']),int(os.environ['SUDO_GID']))
def convertToMP3(music_file):
	if os.name == 'nt':
		os.system('Scripts\\avconv.exe -loglevel 0 -i "' + 'Music/' + music_file + '.m4a" -ab 192k "' + 'Music/' + music_file + '.mp3"')
	else:
		os.system('avconv -loglevel 0 -i "' + 'Music/' + music_file + '.m4a" -ab 192k "' + 'Music/' + music_file + '.mp3"')
		os.chown('Music/' + music_file + '.mp3',int(os.environ['SUDO_UID']),int(os.environ['SUDO_GID']))
	os.remove('Music/' + music_file + '.m4a')

This sets the file owner and folder owner to the user who permitted the sudo command. Additionally you could do this for the rest of the files this program creates, like list.txt, such that a user can save the list file after modifying it without having to run their text editor as su.
`

Downloaded music quality

First, thanks for this - it works great!

I'm wondering tho if its possible to force download the highest quality available because all of the files seem to be at a shocking 48 kbps.

Error when requesting Lyrics

I wanted to try the lyrics command but i have got the following error:

`

Enter a song/cmd: adele hello

Adele - Hello
5,827,520 Bytes [100.00%] received. Rate: [ 667 KB/s]. ETA: [0 secs]
Converting Adele_-_Hello.m4a to mp3

Enter a song/cmd: lyrics

Traceback (most recent call last):
File "spotdl.py", line 210, in
getLyrics()
File "spotdl.py", line 120, in getLyrics
page = requests.request(method='GET', url=link).text
File "C:\Python27\lib\site-packages\requests\api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 474, in request
prep = self.prepare_request(req)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 407, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "C:\Python27\lib\site-packages\requests\models.py", line 302, in prepare
self.prepare_url(url, params)
File "C:\Python27\lib\site-packages\requests\models.py", line 382, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '/l/?kh=-1&uddg=https%3A%2F%2Fwww.musixmatch.com%2Flyrics%2FAdele%2D3%2FHello': No schema supplied. Perhaps you meant http:///l/?kh=-1&uddg=https%3A%2F%2Fwww.musixmatch.com%2Flyrics%2FAdele%2D3%2FHello?
`

README.md shouldn't state to use sudo to launch the script

I'm not totally sure about this, but I don't think it's necessary to grant superuser privileges in order to simply download an .mp3 file on the current user's "Music" subfolder. If I am wrong, please provide us a reason and close this issue. Otherwise, just modify README.md accordingly. Btw, thank you for developing this script.

"The System cannot find the path specified" and Meta Tags don't work

First of all: Nice work! ^^ Thank you very much for this awesome tool!

Although, I can't get the meta tags working. If I start the script with a "-n", then everything works fine, but without it, I get this:

C:\Python27\Scripts>python spotdl.py -l

Total songs in list = 123 songs

  1. Eminence - Unfold - Official Music Video
    4,052,825 Bytes [100.00%] received. Rate: [ 909 KB/s]. ETA: [0 secs]
    Converting Eminence_-Unfold-_Official_Music_Video.m4a to .mp3
    Das System kann den angegebenen Pfad nicht finden.
    Fixing meta-tags
    Failed to download song. Will retry after other songs.
  2. [Progressive House] - Trivecta - Into The Limelight (feat. Danyka Nadeau) [Monstercat Release]
    4,290,364 Bytes [100.00%] received. Rate: [ 941 KB/s]. ETA: [0 secs]
    Converting [Progressive_House]-Trivecta-Into_The_Limelight(feat_Danyka_Nadeau)[Monstercat_Release].m4a to .mp3
    Das System kann den angegebenen Pfad nicht finden.
    Fixing meta-tags
    Failed to download song. Will retry after other songs.

Exitting..

"Das System kann den angegebenen Pfad nicht finden." is in English "File not found"
With the -n, everything works:

C:\Python27\Scripts>python spotdl.py -l -n
-n, --no-convert skip the conversion process and meta-tags

Total songs in list = 121 songs

  1. [Electronic] - Notaker - Infinite [Monstercat Release]
    5,643,422 Bytes [100.00%] received. Rate: [ 859 KB/s]. ETA: [0 secs]

  2. [House] - Teqq - In A Box [Monstercat Release] - New Artist Week Pt. 2
    4,364,286 Bytes [100.00%] received. Rate: [ 883 KB/s]. ETA: [0 secs]

Exitting..

I hope, you can fix this error :)
Good luck, though ^^

macOS Sierra no module named bs4

Hi, I tried to install all dependencies as mentioned in your doc and even looked around the web for some help but I still can not find a solution. Here's the problem when I run the script:

$ sudo python spotdl.py
Traceback (most recent call last):
  File "spotdl.py", line 3, in <module>
    from bs4 import BeautifulSoup
ImportError: No module named bs4

I've installed pip with sudo easy_install pip, also tried installing bs4 and beautifulsoup with: pip install bs4 or pip install beautifulsoup4 but nothing.

Currently using macOS Sierra, what do you suggest?
nice work btw!

Libav avconv problem in MacOS

No is posible install with:

sudo apt-get install libav-tools or brew install libav

error:

`Enter a song/cmd: https://open.spotify.com/track/19ZOdTDbDRhrurCeFRWPii

Dash Berlin - Till The Sky Falls Down (Andrew Rayel Remix) [A State Of Trance 742]
3,666,762 Bytes [100.00%] received. Rate: [ 263 KB/s]. ETA: [0 secs]
Converting Dash_Berlin_-Till_The_Sky_Falls_Down(Andrew_Rayel_Remix)[A_State_Of_Trance_742].m4a to mp3
sh: avconv: command not found
Fixing meta-tags
Traceback (most recent call last):
File "spotdl.py", line 253, in
fixSong()
File "spotdl.py", line 130, in fixSong
audiofile = eyed3.load("Music/" + title + '.mp3')
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/eyed3/core.py", line 81, in load
raise IOError("file not found: %s" % path)
IOError: file not found: Music/Dash_Berlin
-Till_The_Sky_Falls_Down(Andrew_Rayel_Remix)_[A_State_Of_Trance_742].mp3`

Problem with spotdl.py

Traceback (most recent call last):
File "spotdl.py", line 14, in
import pathlib
ImportError: No module named pathlib

python 2.7.13 win 10 x64

Python avconv error while downloading?

>> Enter a song/cmd: https://play.spotify.com/track/6MUitswEpWlb4M217HxYLw

Anderson .Paak & The Free Nationals: SXSW 2016 | NPR MUSIC FRONT ROW
  37,363,103 Bytes [100.00%] received. Rate: [23667 KB/s].  ETA: [0 secs]    
Converting Anderson_.Paak_&_The_Free_Nationals__SXSW_2016___NPR_MUSIC_FRONT_ROW.m4a to mp3..
sh: 1: avconv: not found
Fixing meta-tags..
Traceback (most recent call last):
  File "spotdl.py", line 229, in <module>
    fixSong()
  File "spotdl.py", line 103, in fixSong
    audiofile = eyed3.load("Music/" + title + '.mp3')
  File "/usr/local/lib/python2.7/dist-packages/eyed3/core.py", line 81, in load
    raise IOError("file not found: %s" % path)
IOError: file not found: Music/Anderson_.Paak_&_The_Free_Nationals__SXSW_2016___NPR_MUSIC_FRONT_ROW.mp3

problems with ascii

hey,
i tried to load a title with german chrarakters, and got this error:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 69: ordinal not in range(128)

Cannot Save the songs

Downloaded this script on Feb 6 . Everything works fine. However, after converting the file, the command prompt says "The system cannot find the path specified."

Help Please.

FFmpeg conversion fails

 # python spotdl.py --song "adele hello" --ffmpeg
Adele - Hello
  5,827,520 Bytes [100.00%] received. Rate: [ 864 KB/s].  ETA: [0 secs]    
Converting Adele_-_Hello.m4a to mp3
Traceback (most recent call last):
  File "spotdl.py", line 485, in <module>
    grabSingle(raw_song=args.song)
  File "spotdl.py", line 371, in grabSingle
    convertSong(music_file)
  File "spotdl.py", line 337, in convertSong
    convertWithFfmpeg(music_file)
  File "spotdl.py", line 194, in convertWithFfmpeg
    if args.quiet:
AttributeError: 'Namespace' object has no attribute 'quiet'
zsh: exit 1     python spotdl.py --song "adele hello" --ffmpeg

This happens with any song I try to download. I can't try it with avconv as libav is not available in my distros repositories and FFmpeg should really be used by default anyways

Spotify wrong songs dl

I've got a list with songs from a singer for example songs from a new album:

https://open.spotify.com/track/7eSBwAdfW12By9KdL8ArvW
https://open.spotify.com/track/76SOEvtl5ouCbtxI7pOZnN
https://open.spotify.com/track/5M9I6XtHDH7z2tetf9vYFH
https://open.spotify.com/track/4PfTqzKt27FXbGHVKqJH7U
https://open.spotify.com/track/6m1jWmZPpxbtBcg3e1dTPt
https://open.spotify.com/track/7j21wx0CZsBcEB4s5pN1Bh
https://open.spotify.com/track/2hsYk4i7kq7BNxEKFTEhYa
https://open.spotify.com/track/0okOg5WzE7SiVIUFr5iKWJ
https://open.spotify.com/track/4h2qr1NNLxgYcLzZa2R244
https://open.spotify.com/track/7LGvnCZ2Iq8RbBS6VFBFAb
https://open.spotify.com/track/65h286cCCc83xJU4SdLqvc
https://open.spotify.com/track/7vWaBL92U9Ufq4vvOdHAwk
https://open.spotify.com/track/2xJ5izomXnGeQLkrqT1EX8
https://open.spotify.com/track/3rGvnte4I2VcVQMuyi4ZXn

after typing "list", it downloading me the totally wrong songs, in VLC Player, the tags like title or albumname are right, but as the wrong filename says, it is a totally other song from her.

Seems as if it is beeing downloaded through youtube, because console says:
"ERROR: zmlVGFOkjfU: YouTube said: Unfortunately, this video is not available in your country because it could contain music from UMG......."

Could not complete a song download, will try later

The system cannot find the path specified

I tried to download Adele Hello, and another song by the link and I got this:

Enter a song/cmd: Adele Hello

Adele - Hello
5,827,520 Bytes [100.00%] received. Rate: [ 164 KB/s]. ETA: [0 secs]
Converting Adele_-_Hello.m4a to mp3..
The system cannot find the path specified.

Enter a song/cmd: https://play.spotify.com/track/4xkOaSrkexMciUUogZKVTS

Eminem- Till I Collapse Lyrics
4,773,227 Bytes [100.00%] received. Rate: [ 174 KB/s]. ETA: [0 secs]
Converting Eminem-_Till_I_Collapse_Lyrics.m4a to mp3..
The system cannot find the path specified.
Fixing meta-tags..
Traceback (most recent call last):
File "spotdl.py", line 250, in
Main()
File "spotdl.py", line 238, in Main
audiofile = eyed3.load("Music/" + Title + '.mp3')
File "C:\Python27\lib\site-packages\eyed3\core.py", line 81, in load
raise IOError("file not found: %s" % path)
IOError: file not found: Music/Eminem-_Till_I_Collapse_Lyrics.mp3

Download Playlists

Hey man,

thanks for your tool!
It really works like a charm!
Can you please add a feature to paste a playlist url and then load the complete list?
And it would also be cool, if you would change the naming of the songs when adding the support for loading playlists like: 386 - Moti - House Of Now - Tiësto Edit

Thanks!

Windows - Problem Downloading

I tried to download this song in Windows10 the result is this:
C:\Python27\Scripts>spotdl.py

Enter a song/cmd: one direction taken

Taken - One Direction - Lyrics
4,047,501 Bytes [100.00%] received. Rate: [ 737 KB/s]. ETA: [0 secs]
Converting Taken_-One_Direction-_Lyrics.m4a to mp3
The system cannot find the path specified.

A folder named "Music" appeared in C:\Python27\Scripts\ ...but empty

this all works fine in my Zorin OS which is an ubuntu base but I wanna try it on my windows since it's my primary OS. any help?

Conversion part

I have downloaded the script, and It downloads the songs but when it reaches 100% and tries to convert, I get an error, could please make another script without converting the audio file

Report issues with Spotify API here

As of 29th May, 2017, Spotify has made it mandatory to use an API token to get track information based on
Spotify URI.

More information here.

I am working on a fix for this.

Can't convert playlist to txt

When I do python spotdl.py -u themanwiththegun
I have :

Traceback (most recent call last):
File "spotdl.py", line 495, in
feedPlaylist(username=args.username)
File "spotdl.py", line 133, in feedPlaylist
print(str(check) + '. ' + playlist['name'].encode('utf-8') + ' (' + str(playlist['tracks']['total']) + ' tracks)')
TypeError: must be str, not bytes

Installation Error - Python 3 and avconv

When i try to install the "python.exe setup.py install" i got the error ""SyntaxError: Missing parentheses in call to 'print'"". My Python is the last version, 3.4.5.

Thank you.

Unable to run on Windows, followed directions in Readme

C:\Users\Kenton\Desktop\Moosic\Spotify-Downloader-master>python spotdl.py


>> Enter a song/cmd: https://open.spotify.com/track/22MQaNqXOkTUdg4rawaBCg

Drunk Girl - Don't Stop The Party (Feat. deanna)
  3,118,405 Bytes [100.00%] received. Rate: [17013 KB/s].  ETA: [0 secs]
Converting Drunk_Girl_-_Don't_Stop_The_Party_(Feat._deanna).m4a to mp3
The system cannot find the path specified.
Fixing meta-tags
Traceback (most recent call last):
  File "spotdl.py", line 252, in <module>
    fixSong()
  File "spotdl.py", line 129, in fixSong
    audiofile = eyed3.load("Music/" + title + '.mp3')
  File "C:\Python27\lib\site-packages\eyed3\core.py", line 81, in load
    raise IOError("file not found: %s" % path)
IOError: file not found: Music/Drunk_Girl_-_Don't_Stop_The_Party_(Feat._deanna).mp3

Problem with accents in a music name

When I try to download music with accents in the name, these are recorded on the computer with odd characters.
Example:
-> Music : Kalash Criminel - Mélanger ft. KeBlack
-> Fichier : Kalash_Criminel_-_Mélanger_ft._KeBlack.mp3
However, the tags are correct. It's juste the file name.

A small suggestion to remove "non-song" part

Not that I am complaining but the downloaded songs also has conversation, intro and whatnot that is in the video. I was just wondering if you could figure out the length of the song in the spotify link. If yes then you can improve the code by first calculating the length of the song. Then trim extra length from the downloaded song from beginning of the file — not the end — since most songs have conversation, if they have any, in the beginning.

P.S. You must be annoyed right now. Please bear with me.

Suggestion: Mode to auto start with list.txt

This is in a similar vein to my idea of starting the script in --manual mode.

I propose a startup argument that launches directly into loading the list.txt, as opposed to having to type "list" every time at the prompt. Something like --list ?

If this was already possible then I apologize.

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.