|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Member
Join Date: May 2016
Posts: 98
|
Displaying in ATF a value from unusual tag field - in various file formats
I have this problem with Advanced Title Formatting. It seems that I cannot make it display in my Winamp 5.666 a made-up tag field; or any other tag field than a basic one
When the file is in WV format, then there is no problem: I can see what [and if anything] was written in my made up field which I named TEST. But when the file is in FLAC, MP3 or TTA format- then I see nothing. Because apparently these three formats display via ATF only values that are placed in basic fields: - TITLE - ARTIST - YEAR - COMMENT - GENRE - FILENAME [which is not really a tag field to be precise] So my questions would be: A] Is it really true that only WV can display for example also a made up field; or a field like ORIGARTIST- and not only ARTIST? I use three different lossless formats and those specific formats for a reason. And so I cannot just simply switch to let's say WMA, assuming it also works just like WV. But in a worse case scenario I could eliminate TTA [because there are some other problems with it], thus being left with only FLAC [and MP3] to deal with. Is there some way to activated a full "ATF readability" for FLACs [and MP3s]? B] Is there a way [with a rather complicated code like the one here http://forums.winamp.com/showpost.ph...7&postcount=9] to display something if there is something in a made up field or less popular field like ORIGARTIST? You know, a code that would if there is "X" in field TEST show in ATF "X" if there is "Y" in field TEST show in ATF "Y" if there is "Z" in field TEST show in ATF "Z" or alternatively if there is "X" in field TEST show in ATF "X" if there is "Y" in field TEST show in ATF "XX" if there is "Z" in field TEST show in ATF "XXX" if there is "Q" in field TEST show in ATF "XXXX" ? C] Is there a way to add to already existing in ATF [and working A-OK] code, some small insert that would take the last two characters [preferably also ignoring the white spaces that might be at the very end] from a field like GENRE and display them as two first characters in that field or alternatively take the last string [that would have to preceded by white spaces] from a field like GENRE and display it the very beginning of that field ? Any of these three above questions resolved in a positive matter would make my problem with ATF go away |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: May 2016
Posts: 98
|
|
![]() |
![]() |
![]() |
#3 | |
Major Dude
Join Date: Mar 2010
Location: Canada
Posts: 757
|
A] I'm not sure if it's true in general, but it's true for Winamp.
From the documentation: http://www.meggamusic.co.uk/winamp/d...lp/atf/atf.htm Quote:
code: %AnySupportedField% must be supported in all the file types you use. To look for 2 different strings in a field, make a new ATF string like this:
String2, after replacements: code: String3, to look for 2 values: code: Follow the same pattern to look for multiple strings in a field. I can imagine that there would be complications if one of the strings to be looked for was contained in the other. Windows 10 Home, 64 bit, Winamp 5.666, Bento Skin |
|
![]() |
![]() |
![]() |
#4 |
Member
Join Date: May 2016
Posts: 98
|
So if I literally were to insert
code: into my ATF and play in Winamp a file by artist named X I should see whatever you want #1 ? Because if yes than the code is wrong, as I see whatever you want when X is not found as if there was no X in the ARTIST tag field I also get the same false result ["whatever you want when X and Y are not found" that is] with code: while when using code: I just get a syntax error And those are my rusults for 5 file formats |
![]() |
![]() |
![]() |
#5 |
Major Dude
Join Date: Mar 2010
Location: Canada
Posts: 757
|
Please read the documentation again about $puts() and $get().
In my example, X is a variable name, not the string you are looking for. if you're looking for X in %ARTIST%, try this: code: if %ARTIST% is X, you'll see X. if %ARTIST% is abcdefX ghi, you'll see X. if X is not in %ARTIST%, you'll see "whatever you want when X is not found" Worry about the syntax error after you're satisfied this is what you want. (you missed the last closing bracket) Windows 10 Home, 64 bit, Winamp 5.666, Bento Skin |
![]() |
![]() |
![]() |
#6 | |
Member
Join Date: May 2016
Posts: 98
|
Quote:
Stupid me. I should have not used in the first place an X, Y and Z sign for hypothetical values, as they are used in formulas; and I shall not used them in the future, be it on this forum or anywhere else But what you have now wrote is working form me- thus allowing me for a workaround So thank you very much |
|
![]() |
![]() |
![]() |
|
Tags |
advanced title formatting, atf, made up field, ususual fields |
Thread Tools | Search this Thread |
Display Modes | |
|
|