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

Remove From Playlist Option Always Enabled #29

Open
Alan111S opened this issue Aug 17, 2018 · 11 comments
Open

Remove From Playlist Option Always Enabled #29

Alan111S opened this issue Aug 17, 2018 · 11 comments

Comments

@Alan111S
Copy link

The code to Remove From Playlist is always enabled when the default for this is no. The older deprecated function 'queue_remove_from_playlist' in post_actions.py used to check the option and also checked if the playlist was owned by the loggedin user. The new function 'remove_tracks_from_playlist' needs to be modified to include these functions.

@oligriffiths
Copy link

Yeah I found this out the hard way, a playlist of > 200 songs emptied, WTF.
Luckily I still had a cached version on my iphone so set to airplane mode and manually copied all the songs to a new playlist before it synced.

The check should be here

self.post.remove_tracks_from_playlist()
or in the method being called

@oligriffiths
Copy link

On further investigation, supplying --remove-from-playlist outputs No playlist specified to remove this track from. Did you use '-r' without a playlist link? as an error, so not sure that's even the right option.

There appear to be 2 removal methods:

def queue_remove_from_playlist(self, idx): #depreciated

def remove_tracks_from_playlist(self):

I don't understand the second one, that just removes all items from the playlist regardless, to me removing a track after it's downloaded (1st one) is the right approach.

@Alan111S
Copy link
Author

Alan111S commented Sep 13, 2018 via email

@madrover
Copy link

damn, I just hit this!
has anyone been able to fix this?

@SolidHal
Copy link
Owner

Sorry for any problems this caused anyone. For my use case, having it always remove is a feature rather than a bug as I dedicate a playlist to new songs I want it to automatically rip. Obviously I dont want it to rip those songs over and over. I should have made this more clear in the readme.
If someone submits a tested pull request for this I'll happily merge it.
Two possible solutions:
add flag to prevent removal and make it clear in the README that this is the case
add flag FOR removal

@jposemescouilles
Copy link

jposemescouilles commented Oct 13, 2018

As your reaper is the only one working atm, it would be cool if we could have the option to deactivate the autoremove. It is a feature for sure, but I think the majority of users (myself included) would like to be able to keep their playlist intact.

@tjmurray
Copy link

For anyone who is having troubles, I've been using this fork (not made my me): https://github.com/wolfmanx/spotify-ripper/tree/pr-collect

solidly for the last year without any issues. It gets rid of the autoremove issues and works perfectly. Absolutely saved me so thought I'd pass on the word in case it helps anyone else!

@jposemescouilles
Copy link

@tjmurray thanks for sharing !!

@kseidenfaden
Copy link

I have some other fork installed, and now I'd like to download someone else's public playlist. The version I have will not download playlists - not even my own. And I obviously don't want to delete my friend's playlist ;-)
Do I need to go through the complete installation procedure again, or is it only a matter of substituting a few files to get this to work? (which ones?)
I'm on Ubuntu and I don't know any Python...

@kseidenfaden
Copy link

kseidenfaden commented Nov 9, 2018

I found a workaround that kind of emulates playlist downloading with --flat-with-index: Select (in Spotify) all songs of a playlist, right-click - Share - Copy URIs (luckily copies them all in one go!), save URIs in a file, turn each of them into a shell command by running them through perl -p playlistify, where 'playlistify' is a file that gets around having to figure out which quotes to escape when issuing the command from gvim ;-) - and which contains: $_ = sprintf("spotify-ripper -f '%03d - {artist} - {track}.{ext}' %s", ++$idx, $_);, save the output, and source it in bash. Voila - 75 songs downloaded overnight :)

I'm still curious why normal playlist downloading with spotify-ripper no longer works, but I guess reading the comments about it again might tell me.

@Pancho111
Copy link

Pancho111 commented Apr 4, 2019

Sorry for any problems this caused anyone. For my use case, having it always remove is a feature rather than a bug as I dedicate a playlist to new songs I want it to automatically rip. Obviously I dont want it to rip those songs over and over. I should have made this more clear in the readme.
If someone submits a tested pull request for this I'll happily merge it.
Two possible solutions:
add flag to prevent removal and make it clear in the README that this is the case
add flag FOR removal

Hi Solidal ,
Can you please suggest a way to get the album cover art back ?
Since Feb script is not embeding the art anymore
I will appreciate any help .
thank you a lot

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

No branches or pull requests

8 participants