maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Yaspot (spotify client) (https://talk.maemo.org/showthread.php?t=40842)

sdstrowes 2010-05-24 00:25

Re: Yaspot (spotify client)
 
Regarding yaspot (I guess qtify is hit by the same issue): The version in the repositories is out of date. The despotify API changed very slightly since yaspot was last updated. Specifically: despotify_init_client() in depositify.c now has a fourth parameter, "use_cache".

This means that recompiling the despotify library to latest and replacing the old version doesn't work as before, because yaspot segfaults (the function signature it wants no longer exists).

So, to make yaspot work here again, I've recompiled despotify and yaspot, and copied both over. I haven't packaged these yet (I don't know how, off-hand), but the compiled versions I'm running (with "use_cache" set conservatively to "false") can be found here: http://sdstrowes.co.uk/yaspot/. Feel free to grab those and test them out.

Guidelines:
  • libdespotify.so.0.0.0 goes into /opt/maemo/usr/lib/ as before.
  • For testing, I'm running yaspot from my home directory (and launching via the command line).

Of course, you should probably make backups of originals before replacing anything.

oskkos 2010-05-26 15:16

Re: Yaspot (spotify client)
 
Mine yaspot has started working again.
Updated to PR1.2 and thought about giving a try at it and damn, it worked again :D

Can anyone else confirm that yaspot is working again with PR1.2

Crogge 2010-05-26 15:21

Re: Yaspot (spotify client)
 
Does any of the Spotify clients support a proxy? I use Spotify here in Germany since months without a problem over a UK proxy.

Joorin 2010-05-26 15:23

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by oskkos (Post 679716)
Mine yaspot has started working again.
Updated to PR1.2 and thought about giving a try at it and damn, it worked again :D

Can anyone else confirm that yaspot is working again with PR1.2

Are you having trouble believing yourself?

orcocan 2010-05-26 21:00

Re: Yaspot (spotify client)
 
mine started working again even before the upgrade, not sure what's going on...

dragly 2010-05-26 22:25

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by mickenordin (Post 672174)
For some reason I can't get the autobuilder to build the despotify packages any more and unfortunatly I don't have time to look into too why that is. Anyway, I posted new debs on my blog if you want to use the patched packages instead of just coping the shared libraries.

http://mickenordin.se/blog/index.php...tify-pa-maemo/

/Micke

I had a quick look at the build error and after fighting autobuilder to accept a new control file I managed to make it build. There were three things keeping it from building: Build-Depends had libao0 instead of libao-dev, libdespotify had a Depends missing a comma after ${shlibs:Depends} and the rules file needed dh_makeshlibs to be uncommented to make libdespotify have it's shlibs info created before despotify needed it.

I'll post the edited source code here in case you need it.
rules:
Code:

#!/usr/bin/make -f

#export DH_VERBOSE=1

DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_ARCH      ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_ARCH_OS    ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

MAKEFLAGS=CLIENT_GATEWAY=1 CLIENT_DESPOTIFY=1

build: build-stamp
build-stamp:
        dh_testdir

        mkdir -p $(CURDIR)/debian/tmp
       
        # Add here commands to compile the package.
        $(MAKE) ${MAKEFLAGS}

        touch $@

clean:
        dh_testdir
        dh_testroot
        rm -f build-stamp

        # Add here commands to clean up after the build process.
        $(MAKE) clean ${MAKEFLAGS}
        rm -rf $(CURDIR)/debian/tmp/

        dh_clean

install: build
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_installdirs

        # Build
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/ ${MAKEFLAGS}
       
        # Install
#        dh_install -si --fail-missing --sourcedir=debian/tmp
        dh_install -si --sourcedir=debian/tmp

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installchangelogs
        dh_installdocs
        dh_installexamples
#        dh_install
#        dh_installmenu
#        dh_installdebconf       
#        dh_installlogrotate
#        dh_installemacsen
#        dh_installpam
#        dh_installmime
#        dh_python
#        dh_installinit
#        dh_installcron
#        dh_installinfo
        dh_installman
        dh_link
        dh_strip
        dh_compress
        dh_fixperms
#        dh_perl
        dh_makeshlibs
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

control:
Code:

Source: despotify
Section: sound
Priority: extra
Maintainer: Micke Nordin <mickewiki@gmail.com>
Build-Depends: debhelper (>= 5),
              libtool,
              libexpat1-dev,
              libncurses5-dev,
              libpulse-dev,
              libssl-dev,
              libvorbis-dev,
              zlib1g-dev,
                  libncursesw5-dev,
                  libao-dev,
                  libdespotify-dev
Standards-Version: 3.7.3

Package: libdespotify
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, libvorbisfile3 (>= 1.2.0)
Description: Despotify is an open source client and library for Spotify’s streamed music platform.

Package: libdespotify-dev
Section: libdevel
Architecture: any
Depends: libdespotify (= ${binary:Version})
Description: Development files for libdespotify.

Package: despotify
Section: sound
Architecture: any
Depends: libao0, libncursesw5, libvorbis0a, libvorbisfile3, libdespotify
Provides: despotify, despotify-simple, despotify-gateway
Description: An open source Spotify client.
 * C implementation based on F/OSS code
 * Proof of Concept multi-OS client with curses (text-based) UI
 * Proof of Concept gateway to the Spotify service (text-based
  protocol, for supporting REST).

The package should be in extras-devel any minute now, but I have no idea if it is gonna make Yaspot work or not :p And sorry about the jump in version numbering. The autobuilder wouldn't accept that I had changed the files unless the whole package was updated.

In any case, thanks for you effort in packaging this! Hopefully we'll be able to enjoy Spotify on N900 again soon :)

Update: After installing the newest version everything seems to be working as expected with Yaspot again. However, this version does not have the fourth parameter in despotify_init_client() so I guess it will break with the Spotify API when they decide to update it again. Updating the package to the newest version of despotify is probably a good idea, but I'm afraid I don't have the time to do that myself.

Duffer 2010-05-27 11:21

Re: Yaspot (spotify client)
 
Yaspot keeps dropping me back to entering credentials?

I'm on 1.2, can anyone confirm it's working please?

dragly 2010-05-27 11:52

Re: Yaspot (spotify client)
 
It is working for me, but please check that you have the newest version of yaspot and libdespotify from extras-devel. To be completely sure, run this in terminal (you have to install rootsh first):

sudo gainroot
apt-get update
apt-get install yaspot libdespotify
exit

After doing this it runs as it should on my N900.

Xizor 2010-05-27 15:23

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by dragly (Post 682495)
It is working for me, but please check that you have the newest version of yaspot and libdespotify from extras-devel. To be completely sure, run this in terminal (you have to install rootsh first):

sudo gainroot
apt-get update
apt-get install yaspot libdespotify
exit

After doing this it runs as it should on my N900.

I tried this and still it reverts always back to the login section...

Billy Broms 2010-05-27 17:17

Re: Yaspot (spotify client)
 
My yaspot also behaved like that, but when I tried the files provided by sdstrowes (look further up), everything is working again.

dragly 2010-05-27 22:41

Re: Yaspot (spotify client)
 
@Xizor: Do you get any helpful output if you run yaspot from the terminal? If not, you could try stdstrowes files and see if that works, like Billy said.

Duffer 2010-05-27 22:49

Re: Yaspot (spotify client)
 
Spot on, now works fine. Thanks dragly :)

Xizor 2010-05-28 05:20

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by dragly (Post 684234)
@Xizor: Do you get any helpful output if you run yaspot from the terminal? If not, you could try stdstrowes files and see if that works, like Billy said.

Tried the files provided by stdstrowes, but still the same situation...and when I try to start Yaspot from the terminal I get:

Failed to connect DBUS
bye bye!

Sorry for being such a rookie, but what the heck this means? :)

dragly 2010-05-28 08:50

Re: Yaspot (spotify client)
 
The DBUS is a communication protocol between applications. You can think of it as a way for one application to send signals to another. For instance it is used to send a pause signal to the media player when your phone rings.

I'm not sure what Yaspot used DBUS for, but I guess it might use it to communicate with despotify.

I've seen that error message a few times before with Yaspot because either Yaspot is already running, or you are trying to run it as root. To make sure Yaspot isn't already running, use the command

killall yaspot

in terminal (or reboot your device). To make sure you are not running as root, just don't write sudo gainroot before running yaspot.

Maybe yaspot is also using the despotify executables and not just the library. Just in case, make sure despotify is also the newest version by typing the following commands in terminal:

sudo gainroot
apt-get update
apt-get install despotify
exit

And try to run yaspot again.

Hope this works for you. Good luck ;)

Xizor 2010-05-28 10:40

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by dragly (Post 685019)
The DBUS is a communication protocol between applications. You can think of it as a way for one application to send signals to another. For instance it is used to send a pause signal to the media player when your phone rings.

I'm not sure what Yaspot used DBUS for, but I guess it might use it to communicate with despotify.

I've seen that error message a few times before with Yaspot because either Yaspot is already running, or you are trying to run it as root. To make sure Yaspot isn't already running, use the command

killall yaspot

in terminal (or reboot your device). To make sure you are not running as root, just don't write sudo gainroot before running yaspot.

Maybe yaspot is also using the despotify executables and not just the library. Just in case, make sure despotify is also the newest version by typing the following commands in terminal:

sudo gainroot
apt-get update
apt-get install despotify
exit

And try to run yaspot again.

Hope this works for you. Good luck ;)

Thanks for the help, now I get a bit further...Yaspot currently logs:

authentication failed: Key exchange failed

djivbento 2010-05-29 15:17

Re: Yaspot (spotify client)
 
Yes, now it´s working!!

Try write this in terminal:

sudo gainroot

apt-get update

apt-get install yaspot libdespotify

exit

Is it someone still working with yaspot. Or is it dead, and no more updates are comming ???

If someone working, pleas.... I want a shuffle function!!

Thx

jlpils 2010-05-31 19:12

Re: Yaspot (spotify client)
 
yaspot still stops working on my n900 after some time.
Does it happen to anybody else?

Username 2010-06-01 15:02

Re: Yaspot (spotify client)
 
It's working =D.

jlpils 2010-06-04 18:18

Re: Yaspot (spotify client)
 
Is anyone working on a new yaspot version?

jlpils 2010-06-06 11:08

Re: Yaspot (spotify client)
 
I wouldn't mind paying £20 for a up-to-date spotify client......

aenbacka 2010-06-08 18:11

Re: Yaspot (spotify client)
 
3 Attachment(s)
Hello everyone,

As I mentioned earlier on this thread, I have been working on an alternative Spotify client based on Qt (4.6) and the libopenspotify lib. Now, as the PR1.2 has been released with official Qt support, I have decided to release an initial alpha version of the client (called QSpot). The client is now available from the extras-devel repo (standard disclaimers apply), as well as from the project garage page (qspot.garage.maemo.org). There are still quite a few issues with the current release, which is to be expected from such an early version (such as e.g., problem with initiating playback from time to time on slower connections in particular, cpu usage etc.). Some of these issues are also related to the use of libopenspotify. Libopenspotify is however api-compatible with the official Spotify library, which at some point potentially could prove useful. That was one of the reason why I selected it instead of despotify (which e.g., Yaspot relies on). Feel free to try it out, any feedback is greatly appreciated! :) Find attached some screenshots from the QSpot client.

Dave999 2010-06-08 18:19

Re: Yaspot (spotify client)
 
looks great. I think you should create a new thread for this one. Looking forward to test it.

we now have Qtify, yaspot, footify and the newerst member...Qspot.

thx

dragly 2010-06-08 18:39

Re: Yaspot (spotify client)
 
... and qtspotify.

With so many developers working on different Spotify clients, and considering that a few now appear to have been abandoned, maybe it could be a good idea to create a Maemo-Spotify team? It seems like a waste to redo everything for each client, rather than working together on a supported and stable one.

I think competition is healthy in terms of choice, but having 5 clients doing (or partially doing) the same thing seems a bit of an overkill to me :)

Maybe one of you who are working actively on one of the clients could initiate such a team/project?

slender 2010-06-08 18:39

Re: Yaspot (spotify client)
 
Do all these clients need premium account?

aenbacka 2010-06-08 19:00

Re: Yaspot (spotify client)
 
Yes there are quite a few Spotify clients available at the moment..:) But I think that also can be a good thing to some extent, however I think the suggestion of a Maemo-Spotify team sounds like a really good idea! The best features from all clients could be combined, and more focus could be spent on stability issues etc.

At the moment all N900 Spotify clients require a premium subscription, and I think this is a restriction that we will have to live with. Spotify has also restricted use of their official mobile clients to premium subscribers only, and e.g., the despotify team has decided not to circumvent this restriction. Also the offline functionality is something that probably will not show up in the unofficial clients in the near future (even if its implementation should be quite straightforward), as this would easily enable to download music directly from Spotify.

Nozu 2010-06-09 15:07

Re: Yaspot (spotify client)
 
Spotify has nowadays 3 different subscription possibilities:

Premium - 9,99
Unlimited - 4,99
Open - Free

I have the premium. Has anyone tested if unlimited is enough to work with despotify based players? I bet it isn't enough for the libopenspotify based? It's annoying to pay 9,99 when I can't get the full use for the price, eg. "offline mode" isn't available for us N900 users.

sdstrowes 2010-06-20 11:50

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by Nozu (Post 707336)
Spotify has nowadays 3 different subscription possibilities:

Premium - 9,99
Unlimited - 4,99
Open - Free

I have the premium. Has anyone tested if unlimited is enough to work with despotify based players? I bet it isn't enough for the libopenspotify based? It's annoying to pay 9,99 when I can't get the full use for the price, eg. "offline mode" isn't available for us N900 users.

Unlimited doesn't work with despotify, unfortunately. I've not heard of any plans to open up third-party client access to Unlimited subscribers.

Joorin 2010-06-20 12:32

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by dragly (Post 705812)
... and qtspotify.

With so many developers working on different Spotify clients, and considering that a few now appear to have been abandoned, maybe it could be a good idea to create a Maemo-Spotify team? It seems like a waste to redo everything for each client, rather than working together on a supported and stable one.

As far as I know, new solutions most often appear when someone isn't satisfied with what is available. That was the case for me.

It's a fun hack too, and not only because people seem to want a better client.

Quote:

I think competition is healthy in terms of choice, but having 5 clients doing (or partially doing) the same thing seems a bit of an overkill to me :)

Maybe one of you who are working actively on one of the clients could initiate such a team/project?
Such a team might be a very good idea if there was a good way to find the parts to take from the different clients and stitch together into something new. Add to this that libdespoify and libopenspotify work differently in some ways which would make it necessary to pick one of the two.

On top of this, you need to decide on what kind of client to aim for. I like minimalism, with small binaries that are fast and good at what they do. Saying that I'm "anti bling" might be too harsh but it's pretty close to the truth and it's the reason footify looks like it does. I would have a hard time compromising performance and maintainability for animations or "fancy looking" widgets.

orcocan 2010-06-25 21:18

Re: Yaspot (spotify client)
 
i'm having the same "client upgrade required" issue once again... is anybody able to update the despotify library by any chance?

thanks...

sysko 2010-07-08 18:24

Re: Yaspot (spotify client)
 
Thanks for the effort of building a new Spotify client - this one shows quite nice potential. And it works - sort of. My playlists show up but the appear to be empty, and searching for music and playing it works - as long as the screen stays lit, as soon as the device hits power save mode the music start to stutter. I understand that this is most likely a problem in the underlying spotify-library but I'm still back to Symbian where in the same WLAN the device manages to actually play music...

aenbacka 2010-07-08 19:29

Re: Yaspot (spotify client)
 
I assume that your post refers to the QSpot client..:) I have sometimes also experienced problems with empty playlists, this is due that the tracks have not yet loaded (lib related). Sometimes by re-opening the playlist view will display the tracks. I will look into this issue. I have myself not experienced stuttering when screen dims, does this always occur and is it constantly when the screen is off? I assume you are using the latest version. Thank you very much for your feedback! :)

PS. The QSpot thread can be found at http://talk.maemo.org/showthread.php?t=55589

Quote:

Originally Posted by sysko (Post 745156)
Thanks for the effort of building a new Spotify client - this one shows quite nice potential. And it works - sort of. My playlists show up but the appear to be empty, and searching for music and playing it works - as long as the screen stays lit, as soon as the device hits power save mode the music start to stutter. I understand that this is most likely a problem in the underlying spotify-library but I'm still back to Symbian where in the same WLAN the device manages to actually play music...


sdstrowes 2010-07-14 08:59

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by orcocan (Post 729523)
i'm having the same "client upgrade required" issue once again... is anybody able to update the despotify library by any chance?

If I still had a Premium account, I'd test :) I downgraded to an Ultimate account, only to find they disallow non-Premium users accessing Spotify via third-party libs.

technohippy29 2010-07-14 21:48

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by sysko (Post 745156)
Thanks for the effort of building a new Spotify client - this one shows quite nice potential. And it works - sort of. My playlists show up but the appear to be empty, and searching for music and playing it works - as long as the screen stays lit, as soon as the device hits power save mode the music start to stutter. I understand that this is most likely a problem in the underlying spotify-library but I'm still back to Symbian where in the same WLAN the device manages to actually play music...

Yaspot never stutters for me unless I clock my N900 down to 250Mhz. Footify always stutters when locking the device. Haven't used Qspot enough to tell, but given the above reason Yaspot is my current favorite.

Joorin 2010-07-14 22:09

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by technohippy29 (Post 752129)
Footify always stutters when locking the device.

As in keeps on stuttering or stutters once?

TheBootroo 2010-10-05 00:34

Re: Yaspot (spotify client)
 
if the idea of the Spotify Team is yet real, i want to be in !

I'm a Qt developper, and UX designer, and have a Premium account and a N900 !

Let's bring it on :D

(overall let build up the team before i start a Fifth Spotify Qt Client for Maemo/MeeGo ... ;-) )


All times are GMT. The time now is 11:15.

vBulletin® Version 3.8.8