Grooveshark support?

Asked by Carl Bullock

I was wondering if it would be possible to get Grooveshark (http://en.wikipedia.org/wiki/Grooveshark) support implemented? it's a cloud based music service not too dissimilar to Spotify but allot cheaper =] they offer an adobe air desktop application for premium users.

I don't know if it would be possible to implement but I hope it is! I see online that someone has created a project to integrate it into the Ubuntu notifications system (https://launchpad.net/groovenotify)

Thanks,

Carl

Question information

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

yeah, it may be possible, I can take some code from GrooveNotify, but it will be difficult for me to test it if the desktop app is only for premium users

Revision history for this message
Carl Bullock (dreamsofubuntu) said :
#2

I don't mind footing the bill for a premium account I believe it's currently about $3.00 (US) for a months access =]

I'm just happy your considering supporting it xD

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

well, this days I am changing a little bit the way CG interacts with
plugins, so I'll wait to finish this, before doing a new plugin
just made some research, GS track info and controls (play, next, etc.) is
made using 2 plain text files, so I can easily mimic GS behavior without
actually having the desktop app, after that you can test it (if you want)

On Mon, Aug 9, 2010 at 1:37 AM, Carl Bullock <
<email address hidden>> wrote:

> Question #118922 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/118922
>
> Carl Bullock posted a new comment:
> I don't mind footing the bill for a premium account I believe it's
> currently about $3.00 (US) for a months access =]
>
> I'm just happy your considering supporting it xD
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Carl Bullock (dreamsofubuntu) said :
#4

Yep that sounds good =]

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

ok, you can make some testing if you want
install cg from this branch
https://code.launchpad.net/~cahr-gr/covergloobus/ui
use this commands:
$ bzr branch lp:~cahr-gr/covergloobus/ui
$ cd ui
$ ./autogen.sh
$ make
$ sudo make install

then run from terminal
$ covergloobus
and if you see some strange messages, exceptions, etc., post them here
and tell me if it works well, title/album/artist/state info and play/pause/next/previous controls should work

use this branch only for testing Grooveshark, its not stable

Revision history for this message
Carl Bullock (dreamsofubuntu) said :
#6

Hi just installed it per your instructions and apon launch I get:
[code]
[DEBUG] Prefix: /usr/
[DEBUG] ABS_PATH: /usr/share/covergloobus
[DEBUG] Initializing dbus
[WARNING] Using default Configuration
Traceback (most recent call last):
  File "/usr//share/covergloobus/covergloobus.py", line 354, in <module>
    sys.exit(common.cg.main())
  File "/usr//share/covergloobus/covergloobus.py", line 98, in main
    self.config = common.config_load()
  File "/usr/share/covergloobus/common.py", line 82, in config_load
    + conf.get ("StartPosition",'y'))
  File "/usr/lib/python2.6/ConfigParser.py", line 531, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'StartPosition'
[/code]

I'm running Linux Mint 9 (Ubuntu 10.4)

Revision history for this message
Carl Bullock (dreamsofubuntu) said :
#7

Please ignore the [code][/code] tags...

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

ok, thank you
its not grooveshark plugin related, missed it cause I've ebeen using an old
config file
i've pushed the fix, tested without a config file and seems to be ok, try it
again please

On Thu, Oct 14, 2010 at 12:53 PM, Carl Bullock <
<email address hidden>> wrote:

> Question #118922 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/118922
>
> Carl Bullock posted a new comment:
> Please ignore the [code][/code] tags...
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Carl Bullock (dreamsofubuntu) said :
#9

Hi it runs now however I can't see an option in the player drop down list for Grooveshark (have I missed something?)

also this displays in the terminal :

[INFO] UI: Theme: BadChoice
/usr//share/covergloobus/covergloobus.py:218: Warning: invalid (NULL) pointer instance
  self._menu = gtk.Menu()
/usr//share/covergloobus/covergloobus.py:218: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  self._menu = gtk.Menu()

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

ah, sorry for that, I've forgot to include Grooveshark plugin to the
Makefile, fixed that

the errors: I don'k now what's that, but it's not CG bug, I think something
wrong with your version of pygtk and/or gtk. When you right click CG, menu
appears?

On Thu, Oct 14, 2010 at 3:16 PM, Carl Bullock <
<email address hidden>> wrote:

> Question #118922 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/118922
>
> Carl Bullock posted a new comment:
> Hi it runs now however I can't see an option in the player drop down
> list for Grooveshark (have I missed something?)
>
> also this displays in the terminal :
>
> [INFO] UI: Theme: BadChoice
> /usr//share/covergloobus/covergloobus.py:218: Warning: invalid (NULL)
> pointer instance
> self._menu = gtk.Menu()
> /usr//share/covergloobus/covergloobus.py:218: Warning:
> g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
> self._menu = gtk.Menu()
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Carl Bullock (dreamsofubuntu) said :
#11

Okay, the song information is okay and displays correctly however the album art only works if I select the option to download it from amazon and when it didn't find any I get this:

[DEBUG] Amazon cover downloader started
[DEBUG] Amazon url: http://www.albumart.org/index.php?srchkey=outkast+sumthin%20for%20the%20radio%20%28mixed%20by%20dj%20big%20mike%29&searchindex=Music
[WARNING] Cover not found on Amazon
[WARNING] Unable to download cover from Last.fm
[WARNING] Unable to obtain Discogs artist data
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/share/covergloobus/coversearch.py", line 186, in run
    ext = self.engines[name].get_cover(self.artist, self.album, fp)
  File "/usr/share/covergloobus/covers/Discogs.py", line 35, in get_cover
    for id in releases:
TypeError: 'NoneType' object is not iterable

Also the play/pause and the next/previous buttons don't work

Revision history for this message
Carl Bullock (dreamsofubuntu) said :
#12

Other then that everything works well as far as I can =]

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

yeah, I also have noticed Discogs downloader problem,will fix that later

Do you have "Enable Global Keyboard Shortcuts" enabled in Grooveshark ?
as said here
http://grooveshark.wikia.com/wiki/External_Player_Control_API_Docs
there is also an "External Player Control" setting

On Thu, Oct 14, 2010 at 6:57 PM, Carl Bullock <
<email address hidden>> wrote:

> Question #118922 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/118922
>
> Carl Bullock posted a new comment:
> Other then that everything works well as far as I can =]
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Carl Bullock (dreamsofubuntu) said :
#14

That would of been the problem =]

Works brilliantly! ^^

so is there an eta on this type of thing getting built into the stable build?

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

I'm glad it works well

there are some things to finish, I think in a couple of weeks I'll ask Jordi
to merge it into trunk, depends how much free time I'll have

On Thu, Oct 14, 2010 at 8:59 PM, Carl Bullock <
<email address hidden>> wrote:

> Question #118922 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/118922
>
> Status: Answered => Solved
>
> Carl Bullock confirmed that the question is solved:
> That would of been the problem =]
>
> Works brilliantly! ^^
>
> so is there an eta on this type of thing getting built into the stable
> build?
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>