Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  id3 V1 vs V2
« previous next »
  • Print
Pages: [1]

Author Topic: id3 V1 vs V2  (Read 4730 times)

Offline Zivo

  • Member
  • *
  • Posts: 66
id3 V1 vs V2
« on: May 02, 2007, 04:23:01 AM »
hello

i have music file some with id31 some with id32
when i choose priority to v2 it doesnt show v1
and when i choose priority to v1 it doesnt show v2

so what im asking why to use the word "priority"
as i understand it means that if you have a file with both v1 & v2
than the player will choose the priortiy version that you selected

anyone have the answer

thank you
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: id3 V1 vs V2
« Reply #1 on: May 02, 2007, 04:50:31 AM »
Quote from: Zivo on May 02, 2007, 04:23:01 AM
as i understand it means that if you have a file with both v1 & v2
than the player will choose the priortiy version that you selected

I am fairly sure (from reading the code) this is how it is supposed to work. If it doesn't it is a bug.

However you may want to make sure the the tag is really not there and not just empty which could lead to the described behaviour.
Logged

Offline Zivo

  • Member
  • *
  • Posts: 66
Re: id3 V1 vs V2
« Reply #2 on: May 02, 2007, 07:53:05 AM »
i will cheack it again

but if some other users have the same problem

please write it here
Logged

Offline Zivo

  • Member
  • *
  • Posts: 66
Re: id3 V1 vs V2
« Reply #3 on: May 02, 2007, 09:25:38 AM »
ok i cheak it

and its my mistake , so i m sorry

but...

the reason i thought this is not working its because of another bug


when you use id3v1 and not fill all the fields, like "artist" for exemple.
the player show you an empty line insted the condition you wrtie for empty fields.
in the ID3v2 it works great even if the ID3v1 is partly filled and the priority is v2

so can it be fixed?
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: id3 V1 vs V2
« Reply #4 on: May 02, 2007, 10:14:41 AM »
Hm, do you mean that e.g. %?ia<%ia|Empty> would show a blank line rather than "Empty" if an ID3V1 tag didn't provide a value? If so, then yes, that is a bug. It seems the ID3V1 parser doesn't handle empty strings the way other parts of Rockbox expects...
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: id3 V1 vs V2
« Reply #5 on: May 02, 2007, 10:21:46 AM »
By the way, that bug was introduced with the WPS tokenizer. The old code treated empty strings as "no value" in conditionals.
Logged

Offline Zivo

  • Member
  • *
  • Posts: 66
Re: id3 V1 vs V2
« Reply #6 on: May 02, 2007, 10:35:37 AM »
Quote from: Lear on May 02, 2007, 10:14:41 AM
Hm, do you mean that e.g.  would show a blank line rather than "Empty" if an ID3V1 tag didn't provide a value? If so, then yes, that is a bug. It seems the ID3V1 parser doesn't handle empty strings the way other parts of Rockbox expects...

this is not what i meant
what i meant is
%?ia<%ia|%d1> still if no artist in id3v1 it will show blank line insted the directory

when you look at "show ID3 info" in the [artist] you will see jest blank line
unlike ID3v2 which will show you

i dont think the bug is in the WPS code
i believe its something in the player that reads the ID3 info
and doesnt consider blank fields in ID3v1 as

correct me if i m wrong
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: id3 V1 vs V2
« Reply #7 on: May 02, 2007, 11:30:00 AM »
Quote from: Lear on May 02, 2007, 10:21:46 AM
By the way, that bug was introduced with the WPS tokenizer. The old code treated empty strings as "no value" in conditionals.

Yes, I have noticed that myself. ID3v1 can not have null strings, only empty ones, so I get lots of empty comments in brackets in my wps. :)

So either do a

return (!string &&  !*string)  ? string : null;    

instead of a

return string;

for every tag concerned or better yet solve it globally for all tags.





Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: id3 V1 vs V2
« Reply #8 on: May 02, 2007, 12:40:45 PM »
Quote from: Zivo on May 02, 2007, 10:35:37 AM
this is not what i meant
what i meant is
%?ia<%ia|%d1> still if no artist in id3v1 it will show blank line insted the directory

That's what I meant too, even if my wording wasn't entirely clear. :)

Quote
when you look at "show ID3 info" in the [artist] you will see jest blank line
unlike ID3v2 which will show you

Ah, then I guess the ID3 info screen needs a fix too.

Quote
i dont think the bug is in the WPS code
i believe its something in the player that reads the ID3 info
and doesnt consider blank fields in ID3v1 as

The WPS code used to treat blank fields as 'no info', but that was changed recently.
Logged

Offline Zivo

  • Member
  • *
  • Posts: 66
Re: id3 V1 vs V2
« Reply #9 on: May 02, 2007, 01:28:44 PM »
Quote from: roolku on May 02, 2007, 11:30:00 AM


Yes, I have noticed that myself. ID3v1 can not have null strings, only empty ones, so I get lots of empty comments in brackets in my wps. :)

So either do a

return (!string &&  !*string)  ? string : null;    

instead of a

return string;

for every tag concerned or better yet solve it globally for all tags.



i didnt understand what is this code, is it for WPS ?
where should i wirte it and how it can help me ?
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 195
Re: id3 V1 vs V2
« Reply #10 on: May 02, 2007, 01:31:01 PM »
Your problem should be solved in the latest SVN builds. You have nothing to do but check it works :)
Logged

Offline Zivo

  • Member
  • *
  • Posts: 66
Re: id3 V1 vs V2
« Reply #11 on: May 04, 2007, 03:37:47 AM »
alright thanks for your attention 8-)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  id3 V1 vs V2
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.087 seconds with 15 queries.