Replaced spotipy with a non-api library#2626
Replaced spotipy with a non-api library#2626TzurSoffer wants to merge 10 commits intospotDL:masterfrom
Conversation
|
I currently have a hardcoded variable in the Spotify.py file, but this should be a config option. I tried to make it a config option, but I am unfamiliar with this code and couldn't. |
…well as some minor issues in tracks)
|
Hey, is there any progress towards merging this PR? |
|
This branch works on my system |
|
@TzurSoffer Have you seen this? |
|
if you see that error, you didnt install my fork as it does not use api.spotify.com... |
4.4.5 I had too many pre-existing versions hanging around, was pointing back to the previous .local install. After removing everything spotdl related, reinstalled again from the fork, and its processing, without the error so far. Thanks! |
|
Works on my system! Thanks! |
|
works very well,thank you! |
|
I tried it with the "artist" option and it doesn't work, I don't know if I'm doing something wrong or not; I run the command on a linux headless server, I attached the command and the error here: Command: spotdl download artist:X --headless --output {artist}/{album}/{title}.{output-ext} --format m4a |
|
Artists are not yet supported, download a playlist with all his songs instead for now |
|
Thanks, it works pretty well! Just running into a couple errors at the moment (running this on mac):
|
|
@taco-mustard Please provide the commands as well as the output from the terminal so I can fix replicate it |
|
This was the code that led to the AttributeError This was the output Found 121 songs in dl_songs (Playlist)
AttributeError: 'Downloader' object has no attribute 'download_url' ``` |
|
@taco-mustard It possible that youtube is bugged, I dont have time to fix it rn. for now, you can do |
|
changing |
|
oh got it. |
|
Seems to work well with spotify playlist links.
|
|
It did not work using pip install for me, however, cloning the forked repo and building with uv did work for me (also after upgrading yt-dlp version). My configurationCommand (with uv environment active)
Spotify environment
System specs
|
|
When attempting to install your version I am now getting this; |
|
Either install git or download the repo as zip, unzip it, and run |
|
My apologies for so many comments, still learning this. When I install your thread and run python -m spotdl I get this right afterwards, no downloads; Traceback (most recent call last): |
|
You probably need to install |
|
Is this not doable on android with termux since the phone isn't rooted? |
|
Idk, never tested it |
|
It seems like this is only working on computers and will not work on termux for android. If anyone has any fixes for that I'm all ears please |
|
Is there anyway to get the lyrics attached into the mp3 file like the way original spotdl does it? |
I am not aware of my app changing anything about the lyrics. |
|
Installing your version results in spotdl working - THANK YOU! How can I buy you a coffee?? |
|
Glad I could help, no need to give me anything, although I would appreciate it if you could star the repo |
|
thx now its working . But it didnt download all my songs , i have like 93 track but only 49 downloanded is there some fix ? |
|
Hi its me again i want to know if there is a fix. i have like 93 track but only 49 downloanded is there some fix ? |
|
Command and output please |
what do you mean ? |
|
what command did you write and what was the result on screen, also attach the result from running |
this command set SPOTIPY_CLIENT_ID= && set SPOTIPY_CLIENT_SECRET= && spotdl https://open.spotify.com/playlist/2zWAhfJu7JNBgRE0V2iudY?si=b3ae5847d54f4a89 |
|
do |
ok i will try it |
and i have one more question do i need another program to see all metadata when uploading to like my phone ? |
|
If you mean to play the song while seeing the cover/lyrics, I use Musicolet. If you mean for uploading the songs, it doesn't matter how you do it, but I like to use Syncthing to automatically upload the changes when they are made |
i use offline music bc that app is not available on appstore. and i ment like cover and the autor/s of the song |
oh it does work with metadata now i know i dont need another program yust to add cover etc thx man for help. but it still tripping on some songs |
|
That part is due to yt-dlp, just update it every once in a while, and it should hopefully sort itself out ( |
thx man |
|
ofc, if you found it useful, please leave a star on the repo |
Title
Due to recent changes in Spotify, the api is no longer useful to non-premium users, therfore I have replaced it.
Description
I have made a wrapper to spotAPI, which functions as a drag-n-drop replacement to spotipy, it not perfect, but it has fixed spotdl.
To install working verison run
pip install git+https://github.com/TzurSoffer/spotify-downloaderIf this helped you a star to my fork and bump would be appreciated to help promote this fix.
Related Issue
#2621
#2617
Motivation and Context
It solves the problem of the app not working without Spotify Premium.
How Has This Been Tested?
I have tested both playlists and individual songs.
Types of Changes
Checklist