![]() |
[WIP] CuteSpotify for Sailfish
A few weeks back I updated MeeSpot to use Qt5 and ported it to Ubuntu Touch under the more general name CuteSpotify. I've now also got the majority of its functionality working in Sailfish.
Here's a quick video showing what works at the moment: http://www.youtube.com/watch?v=CLzItdU0Txk And the source can be found here: https://github.com/Elleo/cutespotify/tree/sailfish There's a couple of little issues I'd still like to fix, but once that's done I'll see about building a version for the handful of people lucky enough to have a Jolla device already to have a play around with :). Edit: The latest alpha version can be downloaded here: https://openrepos.net/sites/default/...16.armv7hl.rpm (Released 24th March 2014) |
Re: [Work in Progress] CuteSpotify for Sailfish
Which are the bugs you still need to fix?
|
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
|
Re: [Work in Progress] CuteSpotify for Sailfish
Hi Elleo,
made an icon in SVG with sailfishOS style for Cutespotify based on Messpot icon. http://abload.de/img/cutespotwzeje.png Can provide you the SVG if you like it. |
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
|
Re: [Work in Progress] CuteSpotify for Sailfish
No problem, sent you a link to the SVG on my dropbox via PM.
The bigger the better ;) http://abload.de/img/cutespotbafus.png |
Re: [Work in Progress] CuteSpotify for Sailfish
make the icon leaf shape?
|
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
|
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
Spotify original icon: http://abload.de/img/logoqkfh0.png Jolla shapes: http://www.abload.de/img/all-on-gridtdsiy.png |
Re: [Work in Progress] CuteSpotify for Sailfish
Here's an RPM built for the Jolla device, if anyone with one wouldn't mind running it and letting me know if it works it'd be a big help:
http://mikeasoft.com/~mike/cutespoti...-1.armv7hl.rpm |
Re: [Work in Progress] CuteSpotify for Sailfish
If I just would have my Jolla already....
you should try in #sailfishos or #jollamobile |
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
Seems it doesn't run on the device (and doesn't give any errors), so a release might have to wait until I have a device to debug it on. |
Re: [Work in Progress] CuteSpotify for Sailfish
This is the strace output, if it helps...
Code:
[nemo@localhost ~]$ strace CuteSpotify |
Re: [Work in Progress] CuteSpotify for Sailfish
Thanks pycage, that is helpful, I suspect it's the wrong architecture for libspotify; could you try the following version and see if it gets any further?
http://mikeasoft.com/~mike/cutespoti...-2.armv7hl.rpm |
Re: [Work in Progress] CuteSpotify for Sailfish
The new version starts up but hangs and segfaults when trying to log in.
Code:
19:24:53.601 I [offline_authorizer.cpp:297] Unable to login offline: no such user |
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
|
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer gst-plugins-good to play ogg streams and AFAIK spotify uses ogg to? Btw. there seems to be no armv7hl(eg hard float) version of libspotify.so? Could that be the issue with crashing? |
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
Unfortunately it seems that by using libresource directly I probably won't be able to distribute it in the Jolla store right away because it's not one of the authorised APIs. The latest, sort-of-working version can be downloaded here: http://mikeasoft.com/~mike/cutespoti...-4.armv7hl.rpm It works pretty well in the emulator, but seems to be somewhat flaky on the device, and there's currently no way of controlling the volume, so use at your own peril ;). I'd be quite interested to see a video of it running on a device if anyone has the time :). Quote:
|
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
http://www.youtube.com/watch?v=P86L0XaTM8w Works pretty nice. Couple things are not working so nicely: - Volume control, as said earlier - Some times when starting application it has forgotten credentials. Also some times crashes during startup even credentials are ok - Changing stream quality does not make change and also application will forgot settings immedialy after changing it - With larger playlists application will startup will take LONG time But, this looks very promising. Thanks! |
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
Quote:
This version should theoretically also have some support for control via Bluetooth media keys, assuming that's supported on the device. Quote:
|
Re: [Work in Progress] CuteSpotify for Sailfish
Quality settings saving is now ok.
Maybe these errors have something to do with losting credentials. It will throw those to console when closing application: Code:
16:49:50.225 E [playlist:1990] Unable to save file: playlist.bnk |
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
I think we should ask spotify for an armv7hl file. It should be no problem for them build an binary for armv7hl if not because of some stupid uknown decision. |
Re: [Work in Progress] CuteSpotify for Sailfish
I had to reset factory settings on my phone because Jolla store was not working anymore. And after that I of course had to re-intall Cute Spotify as well.
Now it will not save credentials at all. Code:
04:59:58.708 E [playlist:1990] Unable to save file: playlist.bnk |
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
|
Re: [Work in Progress] CuteSpotify for Sailfish
I might found something..
When saving credentials fails it will write some files to "~/.local/share/CuteSpotify/CuteSpot)" or similar by random. Last time it saved files to "~/.local/share/CuteSpotify/CuteSpot?". At least it writes index.dat to that directory and I presume it will also try to save those .bnk files mentioned before to same directory? Probably it will also try to load config files from incorrect directory as well. Here is list of files currently in ~/.local/share/CuteSpotify Code:
./CuteSpotify Code:
[nemo@localhost ~]$ ls -l .local/share/CuteSpotify/ |
Re: [Work in Progress] CuteSpotify for Sailfish
Yeah, I suspect that the string being passed to libspotify is getting corrupted somewhere; unfortunately debugging things involving libspotify is a bit tricky due to the lack of any debugging symbols/source on the libspotify side of things.
|
Re: [Work in Progress] CuteSpotify for Sailfish
hmm to long path for libsportify to handle maybe? :confused: may sound stupid but...
Anyway, If you think its a bug in libspotify please report it to spotify. |
Re: [Work in Progress] CuteSpotify for Sailfish
Actually i was thinking same but it sounded so stupid that i didn't even say that :) back to the ms-dos 8+3 characters limit?
It seems to cut after 8 characters so can you Elleo cut directory name to CuteSpot just for testing? |
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
|
Re: [Work in Progress] CuteSpotify for Sailfish
Volumelevel is too high for my headphones :(
Good work so far anyway! |
Re: [Work in Progress] CuteSpotify for Sailfish
Very nice work!
loads very fast for me (only a few playlists, and they are not that long). I've experienced the forgotten credentials every time so far (after 5 startups). |
Re: [Work in Progress] CuteSpotify for Sailfish
Hi guys!
Im getting these errors when trying to install: Code:
nemo@localhost ~]$ rpm -i cutespotify-1.3.0-6.armv7hl.rpm How did *you* do it? |
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
This can be done as the normal nemo user without needing root privileges. |
Re: [Work in Progress] CuteSpotify for Sailfish
I just noticed that sometimes when closing CuteSpotify by swiping from top to bottom CuteSpotify prosess will sometimes keep running on backgroud.
As temporary solution I made startup script which will first "killall -9 CuteSpotify" and now it starts every time ok. This might be a bug on Sailfish. Have to keep looking more closely if this happens on other applications too. This morning I had problems to start CuteSpotify and during today battery level dropped down much faster than normaly. So I think CuteSpotify was eating my battery. |
Re: [Work in Progress] CuteSpotify for Sailfish
For some reason I can't seem to login. I've checked that my credentials work on the web login, but CuteSpotify simply rejects them without error. The Accept glow makes no difference. It has so far made two directories under /home/nemo/.local/share/CuteSpotify. One is CuteSpotify and contains a file called settings and a subdirectory Storage containing one file index.dat. This was created first.
The other was created during my login attempts, and is called CuteSpot?. It only contains index.dat. Edit: CuteSpot\021 to be precise. |
Re: [Work in Progress] CuteSpotify for Sailfish
Here are the error messages I get while trying to login with my spotify.com username and password:
18:32:35.241 I [offline_authorizer.cpp:297] Unable to login offline: no such user 18:32:35.242 I [ap:1752] Connecting to AP ap.spotify.com:4070 18:32:35.386 I [ap:1226] Connected to AP: 194.14.177.19:4070 18:32:35.888 E [ap:3953] Connection error: 409 (next trying email address instead of username) 18:33:31.572 I [offline_authorizer.cpp:297] Unable to login offline: no such user 18:33:31.573 I [ap:1752] Connecting to AP ap.spotify.com:4070 18:33:32.071 I [ap:1226] Connected to AP: 194.14.177.18:4070 18:33:33.948 E [ap:3953] Connection error: 410 |
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
Error 409 would seem to indicate that you don't have a premium account, is that correct? CuteSpotify is only available to Spotify users with premium accounts. |
Re: [Work in Progress] CuteSpotify for Sailfish
Quote:
|
Re: [Work in Progress] CuteSpotify for Sailfish
This looks gorgeus!
I really love seeing this work in progress :) But I don't like the part of 10€/month hahaha Keep the hard work up! |
Re: [Work in Progress] CuteSpotify for Sailfish
Hi Elleo,
I've managed to clone and build the code from https://github.com/Elleo/cutespotify/tree/sailfish. But it doesn't seem to want to deploy to my device. Is there something I'm missing (or a step I've missed)? There doesn't seem to any output from QtCreator Thanks |
All times are GMT. The time now is 14:23. |
vBulletin® Version 3.8.8