How scanning TDOR= origyear instead of TDRC= (release) year

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

How scanning TDOR= origyear instead of TDRC= (release) year

Postby wowo » Sat Oct 29, 2011 10:02 am

How can I set the program to scan TDOR = origyear ID3v2.4 tag instead of the TDRC = year ID3v2.4 tag ?
Maybe it is also possible to use the TDOR if there is any and if there is no TDOR tag use the default normal used TDRC = year tag.
I hope you can give me some clues.
Subsonic 4.7 (build 3105) running on QNAP TS-239 Pro II (Intel Atom 1.8GHz Single-core ; 1GB RAM)
wowo
 
Posts: 25
Joined: Mon Oct 24, 2011 9:27 pm

Re: How scanning TDOR= origyear instead of TDRC= (release) y

Postby wowo » Mon Nov 07, 2011 9:35 pm

Or is here someone who can tell if or how I can change this in the scanning module ?
Or what the scanning module is called ?
Subsonic 4.7 (build 3105) running on QNAP TS-239 Pro II (Intel Atom 1.8GHz Single-core ; 1GB RAM)
wowo
 
Posts: 25
Joined: Mon Oct 24, 2011 9:27 pm

Re: How scanning TDOR= origyear instead of TDRC= (release) y

Postby califrag » Mon Nov 07, 2011 9:49 pm

wowo wrote:Or is here someone who can tell if or how I can change this in the scanning module ?
Or what the scanning module is called ?



Hello,
I'm interested in doing this myself, and as such have been working on a branch-mod of Subsonic in which I plan to incorporate several feature-requests and additional functionality.

Since Subsonic is open-source, I encourage anyone who is interested in helping out to check out the SVN.

Particularly you can find the JaudiotaggerParser.java file which controls the ID3 tag reading information here:
http://subsonic.svn.sourceforge.net/vie ... iew=markup

You may want to look specifically at these lines:
Code: Select all
77                   metaData.setYear(getTagField(tag, FieldKey.YEAR));
189               tag.setField(FieldKey.YEAR, StringUtils.trimToEmpty(metaData.getYear()));


I'm pretty sure these two lines control how the year is populated, but I'm not sure where to go from here...
I'm thinking 'FieldKey.ORIGYEAR' ?

Anyways, I am planning to dig a little deeper into the meta data stuff once I fix some of the other bugs I've added.
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

Re: How scanning TDOR= origyear instead of TDRC= (release) y

Postby wowo » Mon Nov 07, 2011 10:01 pm

Thanks for your help.
I will try this this weekend.
First I must make a test subsonic setting.
Subsonic 4.7 (build 3105) running on QNAP TS-239 Pro II (Intel Atom 1.8GHz Single-core ; 1GB RAM)
wowo
 
Posts: 25
Joined: Mon Oct 24, 2011 9:27 pm

Re: How scanning TDOR= origyear instead of TDRC= (release) y

Postby wowo » Tue Nov 15, 2011 10:08 am

I have made an test subsonic setting and I was intended to test 'FieldKey.ORIGYEAR'

I search for a file called "JaudiotaggerParser.java" in the subsonic directory but I could not find any.
Only an file called JaudiotaggerParser.class.

So I can not get any further.
Can you help me, sorry I am no programmer.
Subsonic 4.7 (build 3105) running on QNAP TS-239 Pro II (Intel Atom 1.8GHz Single-core ; 1GB RAM)
wowo
 
Posts: 25
Joined: Mon Oct 24, 2011 9:27 pm

Re: How scanning TDOR= origyear instead of TDRC= (release) y

Postby BKKKPewsey » Tue Nov 15, 2011 12:06 pm

Have moved this thread to mods as we are no longer in HELP territory.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom


Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 8 guests