brasslock / rubyripper

Automatically exported from code.google.com/p/rubyripper
1 stars 0 forks source link

MusicBrainz to FreeDB Gateway won't work with Ruby Ripper #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
MusicBrainz seems to contain more info than FreeDB - or at least, it seems
to for my CD collection. One way of accessing the MusicBrains DB without
needing to implement MusicBrains support in client software is to use the
MusicBrainz FreeDB gateway (http://musicbrainz.org/doc/FreeDBGateway).

However, setting the Server to freedb.musicbrainz.org results in Ruby
Ripper complaining that it can't connect to the FreeDB server ('Network
down?'). I initially thought that this was due to freedb.musicbrainz.org
listening on port 80; however, changing this in rr_lib.rb still resulted in
an error. This could be because rr is using sockets to perform the FreeDB
requests, whereas freedb.musicbrainz.org seems to expect HTTP.

Support for MusicBrains, either through the gateway or directly, would be
greatly appreciated.

Original issue reported on code.google.com by nick.cu...@gmail.com on 30 Sep 2007 at 3:37

GoogleCodeExporter commented 9 years ago
I cannot confirm this. After changing the port to 80 in rr_lib.rb and setting 
the
server to freedb.musicbrainz.org it works just fine to me.

Sockets in Ruby work well with all sorts of protocols like ftp, ssh, telnet, 
http and
some others.

Did you run RR directly from the directory where you changed rr_lib?

Heinz

Original comment by heinz.weigand@gmail.com on 30 Sep 2007 at 7:31

GoogleCodeExporter commented 9 years ago
Well I can reproduce the problem. It seems that the port I use standard 8880 
isn't 
used for http access, but directly for interaction with the database. For http 
access you need somehow to change your path. Can't get it working to easy.

Perhaps you can point me to some server API that I can use to support 
MusicBrainz. 
As far as I can make up of their site (which is really messy) this isn't 
available.

Original comment by rubyripp...@gmail.com on 1 Oct 2007 at 8:40

GoogleCodeExporter commented 9 years ago
Hmm, nope - this doesn't work for me, I wonder why that is. I'm running 'ruby
rubyripper_gtk2' from the same folder that rr_lib is in, but I still get the
'Couldn't fetch the freedb info within 10 seconds' message 
(freedb.musicbrainz.org
works fine in my browser, so the server is up). I'm using RR 0.4.2 rather than 
the
SVN trunk.

Thanks for the instant feedback...

Original comment by nick.cu...@gmail.com on 2 Oct 2007 at 12:37

GoogleCodeExporter commented 9 years ago
Sorry rubyripperdev, I hadn't seen your response when posting my comment above.

There is a ruby library for MusicBrainz on RubyForge: 

http://rbrainz.rubyforge.org/

The MusicBrainz site is indeed all over the place, but from what I can tell 
there's a
REST-like XML webservice that RBrainz wraps:

http://musicbrainz.org/doc/XMLWebService

Original comment by nick.cu...@gmail.com on 2 Oct 2007 at 12:41

GoogleCodeExporter commented 9 years ago
I forgot to mention - I'd be happy to help out with the development for this if 
it's
of any help. At the moment from what I can tell the code is very much 
CDBB-oriented,
I guess the ideal would be to have some kind of song info provider model, where 
the
user could choose either FreeDB or MusicBrainz for the song info...

Original comment by nick.cu...@gmail.com on 2 Oct 2007 at 12:45

GoogleCodeExporter commented 9 years ago
I've looked a bit more at Musicbrainz. It does offer some extra value. However, 
implementing this will take considerable effort. The freedb interface shines in 
easyness compared to this protocol. I won't waste my time with features that 
mostly 
already exists.

First step of the implementation part would be writing a class which entails 
the 
rbrainz library. A basic implementation would then fetch the artist, album, 
year, 
genre,tracktitles. If anyone succeeds in doing this I'll help to integrate it 
into 
rubyripper.

For now the status will be set to WontFix.

Original comment by rubyripp...@gmail.com on 3 Oct 2007 at 6:18

GoogleCodeExporter commented 9 years ago
Hi,
dont know if that helps, but there is also MB-ruby here

http://www.pablotron.org/software/mb-ruby/

There is also a sample script.

Heinz

Original comment by heinz.weigand@gmail.com on 6 Oct 2007 at 11:54