Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Suggestion for the systematization of genre tags (Read 3977 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Suggestion for the systematization of genre tags

I, like many users who bring their collection with perfectionism by prescribing tags, face a problem in which teams playing in several styles at once have several genres in the tags

When filtering tags by genre, we have from 1000 to 3000 genres!



The suggestion is this: if the tags have a separator, then each phrase should be perceived as a separate genre and grouped subsequently. Are your thoughts clear? Who will write the code?

Re: Suggestion for the systematization of genre tags

Reply #1
That sounds like the multivalue field treatment (only, you have to use semicolon for splitter)?
Preferences -> Advanced, write "multi" in search box.

Alternatively, you can do like many external tag sources and use the STYLE tag.
What is a genre and what is a style? Up to you. To some, the genre would be "Pop/Rock" and everything under there would be style. To others, black metal goes into genre.

Re: Suggestion for the systematization of genre tags

Reply #2
The suggestion is this: if the tags have a separator, then each phrase should be perceived as a separate genre and grouped subsequently.
Default "by genre" pattern do exactly this -
Code: [Select]
%<genre>%|[%album artist% - ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%
Of course you can modify it to your needs. See https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Titleformat_Album_List
Just be sure, as Porcus said, that genre is amongst multivalue fields and you are using proper separator (semicolon) in tags. If by mistake you use other separator, you can automatically correct this by using "Split values" function in Properties dialog.

Re: Suggestion for the systematization of genre tags

Reply #3
STYLE tag.

I know the style, but there is no way to use this tag in a regular cue, and I mostly use images

And how to fix everything you wrote with @Rollin about above? How to use it all, sorry I'm stupid


Re: Suggestion for the systematization of genre tags

Reply #4
In which field what should be entered so that genres separated by commas are read as separate

in the classic properties or properties

how to change the separator from a semicolon to just a comma

Re: Suggestion for the systematization of genre tags

Reply #5
how to change the separator from a semicolon to just a comma
Not possible.

As i already wrote: use "Split values" function

Re: Suggestion for the systematization of genre tags

Reply #6
While semicolons are necessarily used for specifying multiple values in a field, one thing you could do for presentation purposes is use the following Display script, in your Genre column or Item Details pane for example.

Code: [Select]
$meta_sep(genre,',' )


Re: Suggestion for the systematization of genre tags

Reply #7
Guys, I need to filter by genre in the explorer, please specify how to get rid of 2552 genres with a comma separator

Re: Suggestion for the systematization of genre tags

Reply #8
While semicolons are necessarily used for specifying multiple values in a field, one thing you could do for presentation purposes is use the following Display script, in your Genre column or Item Details pane for example.

Code: [Select]
$meta_sep(genre,',' )



I don't understand where to insert the code((

Re: Suggestion for the systematization of genre tags

Reply #9
Did you actually read answers? No?

But, anyway...
regular cue, and I mostly use images
I forgot to mention: foobar2000 doesn't  support multivalue fields for external cuesheets. Although, this is not problem if you use embedded cuesheets. For external cuesheets workaround is to write genre into audio files instead of cue.

Here is fast video manual on what pattern can be used in media library viewer and what to do if you use external cue.
https://youtu.be/hjAgeLjDuJE

Re: Suggestion for the systematization of genre tags

Reply #10
@Rollin Thanks bro, for the video. I looked at it thoughtfully, but it's a huge job to sew cue or rewrite tags. How these stupid cue were tortured, I need to read the external ones separately, I have 4 terabytes

What other options are there? With a text editor, I can massively replace semicolons with regexp, and everything else is hell.

Regarding the split, I really didn't see the message - I didn't refresh the page. I tried to split the value on an external cue - the value seems to be substituted, but it is not saved. At the same time , if it worked , then we need to redo every album ?? But only columns work with these parameters? I still didn't understand where to insert this piece of code so that the genre in the explorer is as divided as in the video...

$meta_sep(genre,',' )

Re: Suggestion for the systematization of genre tags

Reply #11
Can we return to this discussion? I want to put things in order - what are your thoughts? I have a discography of images, index cards have critical limitations

Experiments with
$meta_sep(genre,',' )

$meta_sep(genre,'; ')

different variants have not been successful - genres are not differentiated

$meta_sep(X,Y), $meta_sep(X,Y,Z)    Returns metadata field named X, with custom separators for multiple values    $meta(artist,', ',' and ') ⇒ “artist1, artist2 and artist3” - how does it work? Is it possible to solve my problem with these crutches?

Re: Suggestion for the systematization of genre tags

Reply #12
It's very simple to re-write your Genre tags to replace the comma separator with semicolons.  I could do it in less than ten minutes using MP3Tag and an editor.  The same may be possible in FB2K, but I am not so experienced with that.

  • It is VITAL to ensure you have a backup of your library, so you can back-track if the following goes wrong;
  • Load library into MP3Tag and display sorted by filename (default);
  • File > Export... ;
  • Create a new export configuration (click the star button), as follows:
    Code: [Select]
    $loop(%_filename_ext%)%genre%;
    $loopend()
    ;
  • Select your export configuration and run it;
  • Open the export file in an editor such as Notepad++, and perform a global replacement of "," with ";" (I presume the individual genre strings do not contain commas, otherwise there would be confusion).  This is an easy edit, but for more complex operations one can use regex expressions to be more specific, or I often use text manipulation formulae in a spreadsheet... or even Awk.  Make sure there are no extra lines in the file (there is sometimes a blank line to be removed at the beginning, and the pre-defined export configurations include unwanted title lines), and save the file.  Each line should be just the desired content of the Genre tag, and listed in the order as per the MP3Tag display;
  • In MP3Tag, Select All;
  • Convert > Text file - Tag;
  • Select the file you created containing the genre list, and in "Format string" insert:
    Code: [Select]
    %genre%
    "Preview" shows you what will happen when you click "OK", check it (you might, for example, save a CSV file from a spreadsheet and find it has unwanted text delimiters because of accepting the default save options – been there, done that), and if acceptable click "OK".  Job done.

I use this kind of process to ensure my tags (not just Genre) remain consistent across the library, sorting by various fields to inspect for deviations and then making spot alterations within MP3Tag or by export/import for more general correction.

NB: The MP3Tag export (as defined above) uses filename as the sort order for the export, and the actual filename of each track could be included in each line of the export file if desired, but it is not useful when it comes to importing again.  Indexing the import to specific tracks per line requires the full path and not just a filename, so I find it easier to simply map the import to the MP3Tag listing sorted by filename (as detailed above).  This could be a problem if there are multiple tracks with the same filename (eg "Track 01"), although I presume the export order using $loop(%_filename_ext%)... $loopend() will be the same as the display sorted by filename.  Personally, I use [AlbumID][TrackID] as my filenames, which are therefore unique.
It's your privilege to disagree, but that doesn't make you right and me wrong.

Re: Suggestion for the systematization of genre tags

Reply #13
Is it possible to solve my problem with these crutches?
No...

Using $meta_sep is only for display and will NOT make the library viewer split genres.

Replacing a separater with semi-colons will NOT make the library viewer split genres. *

The reason is stated -

I forgot to mention: foobar2000 doesn't support multivalue fields for external cuesheets.

You have to write the genres into file tags as shown in the video Rollin posted. ^

(Perhaps there is a way to automate this, though...)

Re: Suggestion for the systematization of genre tags

Reply #14
@fooball @anamorphic  guys, thanks a lot for the support, it's nice. If you get to the bottom of it, I pointed out that 90 percent of my discography is in images with these damn limited CUE files, I wanted to display a miserable sorting on the screen, but I understand that I will have to re-enter the data. Maybe it's for the best, I've become more experienced and understand genres better