lukedirtwalker / cutespotify

A QT5 Spotify client, based on MeeSpot with support for Ubuntu Touch and SailfishOS.
30 stars 9 forks source link

sd card support #11

Closed ahjolinna closed 9 years ago

ahjolinna commented 9 years ago

It would be nice to have a option to choose where cutespotify saves offline data/songs.

sandsmark commented 9 years ago

you should be able to do this by changing the path in the config file.

I tried to make it possible to change this at runtime, but closing and re-opening the spotify session was not trivial, and having to restart the app was ugly, so I kind of gave up.

lukedirtwalker commented 9 years ago

libspotify would allow to move the data. But then again I don't know how long this takes. While adapting the path would be easy the moving is the reason why I didn't do it yet.

sandsmark commented 9 years ago

well, I was just going to nuke the old cache and force it to re-download all the data, but moving sounds better. :-)

lukedirtwalker commented 9 years ago

Hum actually I'm wrong there is no such function, I confused it with the bitrate function which can resync the cache (https://developer.spotify.com/docs/libspotify/12.1.51/group__session.html#ga4bba5f828d6c87692f2c355cc8f07c61)

BonoNL commented 9 years ago

Would be a nice option. Would make the app be faster with adapting the SD card then Sailfish itself :)

lolli78 commented 9 years ago

As SD cards are getting cheaper and Jolla Phone only has 16 GB internal memory, this would be a great option (even with deleting and re-downloading all offline music).

lukedirtwalker commented 9 years ago

Good those are now enough votes. I will check it out, this weekend.

lolli78 commented 9 years ago

Great news! Thanks!

florianwittmann commented 9 years ago

Awesome news! :+1:

lukedirtwalker commented 9 years ago

Please test the following version: https://drive.google.com/file/d/0B-KOnAfO-Ux8MnE0N2ZQQm5zRG8/view?usp=sharing

lolli78 commented 9 years ago

Thanks for this enhancement. It works perfectly, but after the first restart all playlists in the main view were shown twice. Don't know how to reproduce this.

lukedirtwalker commented 9 years ago

@lolli78 Oh that's an old problem which is known. Just restart again and it should work :P

BonoNL commented 9 years ago

Wanted to test it but my SD card seemed to be disappeared.

Well that is whats happening after nearly 2 years of not using it, I probably lend it to someone.

Not able to test it tomorrow.