Robert Hart | 1 Dec 19:52
Picon
Picon
Favicon

Non-UTF8 ID3 tags.

I've had a go at sorting out some of the problems with non-UTF8 friendly
ID3 tags.

This code simply checks to see if a tag contains valid-UTF8, and if it
doesn't assume it must be in "ISO-8859-1". Obviously for the non-english
speakers amongst us, they will want to assume something different. I
plan to make this a preference in future, but for now you can edit the
code by hand. What I don't think we will be able to do is "auto-detect"
an enconding. I looked at the ruxmms, and the way it goes about it is
really ugly.

I am using glib to do the utf8 checking and conversion, but for the time
being I just added a GTK dependency to the id3 code, which has the same
effect.

The problem I come across, is for this to be useful, I really need to
blow away my music-catalogue and rebuild it, and that doesn't seem to be
possible with the zinf in CVS. When is this mdb stuff going to work?

Rob

--

-- 
Robert Hart <enxrah <at> nottingham.ac.uk>
Index: plm/metadata/id3lib/Makefile.am
===================================================================
RCS file: /cvsroot/zinf/zinf/plm/metadata/id3lib/Makefile.am,v
retrieving revision 1.2
diff -a -u -r1.2 Makefile.am
(Continue reading)

Picon
Gravatar

Re: Non-UTF8 ID3 tags.

On Mon, 2003-12-01 at 10:52, Robert Hart wrote:
> I've had a go at sorting out some of the problems with non-UTF8 friendly
> ID3 tags.
> 
> This code simply checks to see if a tag contains valid-UTF8, and if it
> doesn't assume it must be in "ISO-8859-1". Obviously for the non-english
> speakers amongst us, they will want to assume something different. I
> plan to make this a preference in future, but for now you can edit the
> code by hand. What I don't think we will be able to do is "auto-detect"
> an enconding. I looked at the ruxmms, and the way it goes about it is
> really ugly.
> 
> I am using glib to do the utf8 checking and conversion, but for the time
> being I just added a GTK dependency to the id3 code, which has the same
> effect.

There is some utf8 conversion code under the lib directory you 
might be able to use.

> The problem I come across, is for this to be useful, I really need to
> blow away my music-catalogue and rebuild it, and that doesn't seem to be
> possible with the zinf in CVS. When is this mdb stuff going to work?

Eeek.. I haven't tried a fresh check out in a while.. I do it now and
see what the problem is.   Are you using the new browser or the standard
one?  

> Rob
--

-- 
email:kris <at> cs.ucsb.edu office:(805)893-4276 http://www.cs.ucsb.edu/~kris
(Continue reading)

Picon
Gravatar

Re: Non-UTF8 ID3 tags.

On Mon, 2003-12-01 at 10:52, Robert Hart wrote:

> The problem I come across, is for this to be useful, I really need to
> blow away my music-catalogue and rebuild it, and that doesn't seem to be
> possible with the zinf in CVS. When is this mdb stuff going to work?
> 

I just did a fresh checkout form cvs, blew away my ~/.zinf, scanned 20GB
of music with no problems..  

I then switched to the musicbrowsermm (uses mdb), 
re-searched the music and again had no problems.  

Let me know a few for specifics of the problems you are seeing and
maybe we can track it down.   

--

-- 
email:kris <at> cs.ucsb.edu office:(805)893-4276 http://www.cs.ucsb.edu/~kris

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Robert Hart | 1 Dec 21:01
Picon
Picon
Favicon

Re: Non-UTF8 ID3 tags.

On Mon, 2003-12-01 at 19:30, Kristian G. Kvilekval wrote:

> There is some utf8 conversion code under the lib directory you 
> might be able to use.

I just figured that as we depend on glib anyway, that it wouldn't be too
big a deal to use it there as well. 

I don't think it's a good idea to use stuff in our lib directory. I seem
to remember we got in trouble when there was a security bug in zlib,
because we had our own version, and didn't use the system one.

> > The problem I come across, is for this to be useful, I really need to
> > blow away my music-catalogue and rebuild it, and that doesn't seem to be
> > possible with the zinf in CVS. When is this mdb stuff going to work?

> Eeek.. I haven't tried a fresh check out in a while.. I do it now and
> see what the problem is.   Are you using the new browser or the standard
> one?  

The old one. It comes up and says "There are no songs blah blah blah"
then you run the search, and when it finishes it pops up the same
message, and no songs ever get added.

Rob

--

-- 
Robert Hart <enxrah <at> nottingham.ac.uk>

-------------------------------------------------------
(Continue reading)

Robert Hart | 1 Dec 21:24
Picon
Picon
Favicon

Re: Non-UTF8 ID3 tags.

On Mon, 2003-12-01 at 19:55, Kristian G. Kvilekval wrote:

> I just did a fresh checkout form cvs, blew away my ~/.zinf, scanned 20GB
> of music with no problems..  
> 
> I then switched to the musicbrowsermm (uses mdb), 
> re-searched the music and again had no problems.  
> 
> Let me know a few for specifics of the problems you are seeing and
> maybe we can track it down.   

Ok. I think the problem must only occur with certain ways of searching.

I just deleted ~/.zinf/db/metadb (I think, maybe it was the other one,
or maybe both, but not the full ~/.zinf), so I didn't get the "Intro
Wizard".

Instead, I get a message that says that my music catalogue contains no
tracks. It runs the search (and from the messages to the console),
clearly finds stuff, but when it finishes, it pops up a message to say
the catalogue contains no tracks.

I have now done the full delete, and from the intro wizard scanned my
mp3s directory, and then choosen search computer for music, and selected
a different directory that contains a few downloaded tracks, this was
searched, but the files don't show up.

Rob

--

-- 
(Continue reading)

Picon
Gravatar

Re: Non-UTF8 ID3 tags.

On Mon, 2003-12-01 at 12:24, Robert Hart wrote:
> On Mon, 2003-12-01 at 19:55, Kristian G. Kvilekval wrote:
> 
> I have now done the full delete, and from the intro wizard scanned my
> mp3s directory, and then choosen search computer for music, and selected
> a different directory that contains a few downloaded tracks, this was
> searched, but the files don't show up.

I will check into this, but hopefully you can continue to work 
on UTF8 and mp3s which is pretty important.

> Rob
--

-- 
email:kris <at> cs.ucsb.edu office:(805)893-4276 http://www.cs.ucsb.edu/~kris

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

Gmane