Spotify errors bug

Asked by Johnny

I get this error when trying to run covergloobus with Spotify Linux Preview in Elementary OS Luna (based on Ubuntu 12.04 Precise)

Traceback (most recent call last):
  File "/usr/share/covergloobus/players/Spotify.py", line 211, in check_new_song
    self._last_album = wikilyrics_get_album(artist, title)
  File "/usr/share/covergloobus/core/utils.py", line 53, in wikilyrics_get_album
    c.debug("Getting Album: " + url)
NameError: global name 'c' is not defined

is there a easy fix? My covergloobus version is 1.7. Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
CoverGloobus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alexandr Grigorcea (cahr-gr) said :
#1

get the latest bzr version

On Sun, Sep 8, 2013 at 9:21 PM, Johnny <<email address hidden>
> wrote:

> Question #235361 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/235361
>
> Description changed to:
> I get this error when trying to run covergloobus with Spotify Linux
> Preview in Elementary OS Luna (based on Ubuntu 12.04 Precise)
>
> Traceback (most recent call last):
> File "/usr/share/covergloobus/players/Spotify.py", line 211, in
> check_new_song
> self._last_album = wikilyrics_get_album(artist, title)
> File "/usr/share/covergloobus/core/utils.py", line 53, in
> wikilyrics_get_album
> c.debug("Getting Album: " + url)
> NameError: global name 'c' is not defined
>
> is there a easy fix? My covergloobus version is 1.7. Thanks.
>
> --
> You received this question notification because you are an answer
> contact for CoverGloobus.
>

Revision history for this message
Johnny (ohai) said :
#2

I just did. Now my version is 1.7 with a Rev# is 377 now.

I get no error messages but it's still not working with spotify. It just says Linux Preview where song name should be. No song/artist data or cover art appears.

Revision history for this message
Alexandr Grigorcea (cahr-gr) said :
#3

spotify plugin is made for windows version running with wine. it takes info
from window title. if the title has different format, the plugin will fail
to retrieve the song info. spotify for linux implements mpris2 interface,
so it should be easy to make a new plugin to support it. I can make it, but
I wouldn't be able to test it.

On Tue, Sep 10, 2013 at 11:16 AM, Johnny <
<email address hidden>> wrote:

> Question #235361 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/235361
>
> Status: Answered => Open
>
> Johnny is still having a problem:
> I just did. Now my version is 1.7 with a Rev# is 377 now.
>
> I get no error messages but it's still not working with spotify. It just
> says Linux Preview where song name should be. No song/artist data or
> cover art appears.
>
> --
> You received this question notification because you are an answer
> contact for CoverGloobus.
>

Revision history for this message
Johnny (ohai) said :
#4

Hi. That would be great if you could make a new plugin to support it. I could test it to make sure it works ok.

Revision history for this message
Johnny (ohai) said :
#5

I also found this: http://www.mabishu.com/blog/2010/11/15/playing-with-d-bus-interface-of-spotify-for-linux/

which might help make the player plugin for spotify linux.

Revision history for this message
Johnny (ohai) said :
#6

I just got the artist/song/album data working with this:
http://pastebin.com/Bn41pTuq

Easier than I thought...but the cover art is not showing up for some reason.

Revision history for this message
Alexandr Grigorcea (cahr-gr) said :
#7

Well, there is no file, so no cover art, unless you activate some cover
downloader (I'm not sure if those still work though). I don't think spotify
provides covers.

On Wed, Sep 11, 2013 at 12:56 AM, Johnny <
<email address hidden>> wrote:

> Question #235361 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/235361
>
> Johnny gave more information on the question:
> I just got the artist/song/album data working with this:
> http://pastebin.com/Bn41pTuq
>
> Easier than I thought...but the cover art is not showing up for some
> reason.
>
> --
> You received this question notification because you are an answer
> contact for CoverGloobus.
>

Revision history for this message
Johnny (ohai) said :
#8

When I click on the volume control button in the tray panel, spotflux is listed under there along with VLC and both automatically shows the cover art, song/album/artist name, and give me control options. So I think there is a way to turn on the cover art in the spotify.py. Not sure how to do it yet.

Revision history for this message
Johnny (ohai) said :
#9

http://i.imgur.com/2VjsmvW.png

^Screenshot of what I'm talking about. I'm not sure why the coverart doesn't shows up in covergloobus but it will show up automatically in volume control and it's not like the spotify photos are on my hard drive.

Revision history for this message
Alexandr Grigorcea (cahr-gr) said :
#10

Believe me, I made it, if it does not work out of the box, there is nothing
you can do in spotify.py. Spotify may send mpris:artUrl field, but if it is
not a file on the filesystem, it will not work. If it is a http(s) URL
you'll have to change mpris2 plugin to download it (in async way).

On Wed, Sep 11, 2013 at 4:56 AM, Johnny <
<email address hidden>> wrote:

> Question #235361 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/235361
>
> Johnny gave more information on the question:
> http://i.imgur.com/2VjsmvW.png
>
> ^Screenshot of what I'm talking about. I'm not sure why the coverart
> doesn't shows up in covergloobus but it will show up automatically in
> volume control and it's not like the spotify photos are on my hard
> drive.
>
> --
> You received this question notification because you are an answer
> contact for CoverGloobus.
>

Revision history for this message
Johnny (ohai) said :
#11

Thanks anyway for the help.

Can you help with this problem?

Provide an answer of your own, or ask Johnny for more information if necessary.

To post a message you must log in.