MrSinatra;478521 Wrote: 
> i guess that depends on how the scanner maps into the SBS DB.  as i
> understand it from andys explanation, YEAR in v1 would be read into the
> DB field first, and if TDAT was present in v2 it would overwrite the
> same DB field.  if it was blank, v1 would remain.
> 

OK, I'll give a more detailed explanation of how this works.  I'm using
libid3tag (heavily patched) for all ID3 tag reading.  The way this
library works is it upgrades all tags into ID3v2.4 tags, this will be
why when using View Tags you will see v2.4 tag names instead of your v1,
v2.2 or v2.3 names.  The mapping for v1 is:


Code:
--------------------
    
  # define ID3_FRAME_TITLE      "TIT2"
  # define ID3_FRAME_ARTIST     "TPE1"
  # define ID3_FRAME_ALBUM      "TALB"
  # define ID3_FRAME_TRACK      "TRCK"
  # define ID3_FRAME_YEAR               "TDRC"
  # define ID3_FRAME_GENRE      "TCON"
  # define ID3_FRAME_COMMENT    "COMM"
  
--------------------


When it first scans the v1 tags, it changes them into these v2.4 tags. 
Then when a 2.4 tag is read that matches, it will be overwritten.  So
the TDAT case would result in 2 separate tags (initially), because TDAT
is not the mapping.  However, because TDAT is a v2.3 tag, there is
another mapping phase that runs that creates a TDRC frame from old
frames such as TDAT/TYER/TIME frames.  So you would then end up with 1
single TDRC tag, from the TDAT data. 

There is currently a bug that v1 comments and v2 comments are not
merged, but stacked.  I need to fix this so that if they are exact the
duplicate is removed.

> 
> i assume APE would be last (and therefore take precedence), but i'm not
> sure i saw this answered officially?

APE tags are scanned first, before any ID3 tags.  Then the ID3 tags are
merged in, so ID3 will win out on any duplicates.  Looking through my
code I realized I'm a bit inconsistent in what fields allow duplicates
and what fields get overwritten, this may cause some issues.


-- 
andyg
------------------------------------------------------------------------
andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292
View this thread: http://forums.slimdevices.com/showthread.php?t=70456

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta

Reply via email to