Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tagupdatefile
13-10-2018, 10:51
Post: #1
Tagupdatefile
Hello,

I just wrote a tagupdate file for composers. This file catches different ways of writing composers names and replace them with one I like. Therfore when I understand it right I have to Write for every change one line. For example

@COMPOSER=Beethoven, L.
+COMPOSERSORT2=Beethoven (1770-1827), Ludwig van
@COMPOSER=Beethoven, Ludwig van
+COMPOSERSORT2=Beethoven (1770-1827), Ludwig van
@COMPOSER=Ludwig van Beethoven
+COMPOSERSORT2=Beethoven (1770-1827), Ludwig van
@COMPOSER=Ludwig van Beethoven (1770 - 1827)
+COMPOSERSORT2=Beethoven (1770-1827), Ludwig van
@COMPOSER=Ludwig van Beethoven (1770-1827)
+COMPOSERSORT2=Beethoven (1770-1827), Ludwig van

What I would like to have is an ´or´ that I have to write the last line only once. Or I‘m doing something wrong?
Find all posts by this user
Quote this message in a reply
15-10-2018, 15:00
Post: #2
RE: Tagupdatefile
(13-10-2018 10:51)Reinibert Wrote:  Hello,

I just wrote a tagupdate file for composers. This file catches different ways of writing composers names and replace them with one I like. Therfore when I understand it right I have to Write for every change one line. For example

@COMPOSER=Beethoven, L.
+COMPOSERSORT2=Beethoven (1770-1827), Ludwig van
@COMPOSER=Beethoven, Ludwig van
+COMPOSERSORT2=Beethoven (1770-1827), Ludwig van
@COMPOSER=Ludwig van Beethoven
+COMPOSERSORT2=Beethoven (1770-1827), Ludwig van
@COMPOSER=Ludwig van Beethoven (1770 - 1827)
+COMPOSERSORT2=Beethoven (1770-1827), Ludwig van
@COMPOSER=Ludwig van Beethoven (1770-1827)
+COMPOSERSORT2=Beethoven (1770-1827), Ludwig van

What I would like to have is an ´or´ that I have to write the last line only once. Or I‘m doing something wrong?

I do not know how to solve your problem but would it not just be easier to just fix the metadata in the file themselves. This would have the advantage of having consistency if played without using MinimServer.
Visit this user's website Find all posts by this user
Quote this message in a reply
17-10-2018, 01:04 (This post was last modified: 17-10-2018 02:27 by Reinibert.)
Post: #3
RE: Tagupdatefile
That‘s the point. I don‘t want to change all metadata.
Find all posts by this user
Quote this message in a reply
20-10-2018, 21:36
Post: #4
RE: Tagupdatefile
I have been looking into this and I think there is a fairly simple way to provide what you want.

At present, the tag update file contains a number of update groups. Each update group contains a match instruction specifying a single tag value, some optional filter instructions and some update instructions (see this section). In your example, you have five update groups that all have the same update instruction.

This could be changed to enable an update group to provide multiple tag values for matching by allowing multiple match instruction lines. With this change, instead of having five update groups each with a single match instruction, you could have a single update group with five match instructions, as follows:

@COMPOSER=Beethoven, L.
@COMPOSER=Beethoven, Ludwig van
@COMPOSER=Ludwig van Beethoven
@COMPOSER=Ludwig van Beethoven (1770 - 1827)
@COMPOSER=Ludwig van Beethoven (1770-1827)
+COMPOSERSORT2=Beethoven (1770-1827), Ludwig van

There would need to some restrictions because of how tag updating is implemented. All the match instructions in an update group would need to have the same tag name. All the filter instructions and update instructions in the update group would be applied to all files that match any of the match instructions.

I have implemented a prototype of this and I can make it available to anyone who would like to try it. Please post here if you are interested.
Find all posts by this user
Quote this message in a reply
22-10-2018, 23:22
Post: #5
RE: Tagupdatefile
Hello Simon,

yes that is what I want. So I am interested in your solution.

Thanks a lot!
Find all posts by this user
Quote this message in a reply
23-10-2018, 10:48
Post: #6
RE: Tagupdatefile
This feature is now available in MinimServer update 126.
Find all posts by this user
Quote this message in a reply
23-10-2018, 20:12
Post: #7
RE: Tagupdatefile
Thank you!
Find all posts by this user
Quote this message in a reply
09-11-2018, 14:07
Post: #8
RE: Tagupdatefile
Hello,

I would like to send my Tagupdatefile to the forum. Maybe there somebody who like to use it. But for normal replay the text is to long. How can I send it?

Thanks
Find all posts by this user
Quote this message in a reply
09-11-2018, 18:01
Post: #9
RE: Tagupdatefile
You can attach a file to a forum post as a file attachment by doing the following:

1) Create a new forum post and type any text that you want to post

2) Select New Attachment: Browse (just above and to the left of the Post Reply button)

3) Browse to the file that you want to attach and select it

4) After you have done this, click the Add Attachment button at the right-hand side of the screen. If you don't click Add Attachment, the file won't be attached.
Find all posts by this user
Quote this message in a reply
12-11-2018, 12:29 (This post was last modified: 12-11-2018 12:30 by Reinibert.)
Post: #10
RE: Tagupdatefile
Thank you Simoncn.

As a atachment now my tagupdtefile. Maybe other like to use this file to manage their classical-composers. For me it was interissting to find classical compositions in some jazz-tracks and in the compilations.

To get it work you have to wirite into
indexTags "COMPSOERSRT2" Myself I use "COMPOSERSORT2:Klassikkomponisten".

tag.Options "COMPOSERSORT2.reverseName.display.index"

and ofcourse in tagUpdate the path from the tagupdte-file.


[attachment=1617]


Attached File(s)
.txt  tagupdate-composer.txt (Size: 105.85 KB / Downloads: 32)
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)