![]() |
Adv. Title Formatting ignoring "The" at the beginning of title
Hi, can anyone give me the form of advanced title formatting that will delete/ignore the "The" at the beginning of titles?
|
Maybe you should use $replace
For example: $replace(%title%,The, ) It will replace all instances of "The" in title on empty string "" (I don't know method that will replace only first instance). |
Try this:
code: |
Nope, doesn't work.
I mainly wanted something like in Media Library so it will ignore it and use the first letter of next word, but I wanted it to work while loading files to playlist, because I have Winamp and my music on my pendrive and for example, when I'm at school and I have some free time I plug up my pendrive and headphones to the computer, boot up my portable Winamp, add the folder from my drive that usually changes it's letter and listen to music. So, if adv. title formatting fails, how to make a portable local library? :( |
1 Attachment(s)
It works on my system. (see attachment)
When you change the ATF string, Winamp asks if you want to update the titles in the current playlist. If you do, only the titles in the Playlist Editor are updated, not the Library playlists. They maintain the "old" formatting, even in the Playlist Editor when enqueued. To update the titles in Library playlists, open each playlist, select all items, and click "Rebuild titles on selection" (on the Misc menu, at the bottom) |
I did reloaded the playlist, even readded the test file, and still nothing.
Also, I don't use the tags of the song, i sort them by the filename, in the form of "Artist - Title.mp3", and I have no bloody idea how the ATF works. |
Right
That format string works only when ATF is enabled and only if the tag field "Title" is used. But ATF can also be used to create titles by parsing the file path. Try this: code: And make sure ATF is enabled: Preferences > General Preferences > Titles > check-mark "Use advanced title formatting when possible" Click "ATF Help" on the same page to see the documentation. |
Ah, it works fine! Except the stuff with tags are named by the filename, but that's fine.
Thank you for your help :D |
Winamp is designed to use tags and some of it's best features depend on having proper tags. By default some options will try to make tags if they do not exist. If you don't want Winamp to use tags, you must disable these options and remove all tags from your music files. This will make some parts of Winamp useless or more difficult to use.
|
Anyways, I wanted that setting only for my Winamp on the USB stick.
Oh, and is there a program (or Total Commander plugin) for adding tags basing of the filenames? |
Quote:
I use Mp3tag. |
I'm reviving the thread, I've used Mp3tag on my music collection and there is a problem.
1. The first ATF preset shown here only shows title. When I change %title% to %artist%, it only shows the artist name, but it works. 2. I have bunch of songs with only a title, and I want them to blend with the ones with artist and title. ie: I don't want them to be like this: 1.Title 2.Title 3.Artist - Title 4.Artist - Title I want them to be like this: 1.Title 2.Artist - Title 3.Title 4.Artist - Title But if the ATF will change the artist and there is none present, i think it will be like: - Title As there is no artist, or it will freak out. So, yeah, that's a problem. |
Is there a way to remove the artist name from being displayed in the playlist when the artist name is part of the actual file name? If so could someone please tell me how to configure that string.
Example: Tom Petty and the Heartbreakers - Built to Last.mp3 is the actual filename, as well as the song title meta data. I want to only display the name of the song without the artist. So it shows Built to Last only on the display. Using 5.66 on windows 7 64bit and running taskbar intergration add in. Thanks |
Quote:
Experiment by creating your own string. Make sure ATF is enabled: Preferences > General Preferences > Titles > check-mark "Use advanced title formatting when possible" Click "ATF Help" on the same page to see the documentation. |
I have looked myself sideways and that stuff has fried my brains. I have experimented a lot and nothing I have come up with removes the artist name from displaying. I did however get the artist name to show up three times in the playlist for one song. I have tried $trim(%artist%) and so on and have come up with either the name duplicated or syntax errors. I don't want to go through my collection and rename every one of the files.
Any help is appreciated. |
is a legitimate ATF string and will not cause a syntax error.code: It will return the value of the ARTIST field with all leading and trailing spaces removed. But you want the song TITLE. Perhaps you misread the documentation. You have made things difficult for yourself by using the TITLE field to contain the file name. It would be logical to use the tag fields for there intended purpose and thereby improve the flexibilty of formatting titles. I suggest re-tagging your files. In the meantime, try this: code: |
Hi Old Skool,
So far, computer programs can only respond to a limited number of circumstances that correspond to a fixed set of rules. If your file names and/or tags do not follow a single consistent set of rules that Winamp understands, then there is not much Winamp can do that will work in all cases. You can try using "MP3Tag" to automatically rename or re-tag files based on current tags or names, but I would be very careful doing that and be sure to have backups of the original files. |
I'll try that string ryerman. I appreciate the pointer, like I said I looked at the ATF string help file for a few days before posting for assistance. I am stubborn that way and like trying to figure stuff out.
Amiinfu renaming my collection has been an ongoing process. I started at the beginning of November an dam still working on my main directory collection of over 6900 files give or take a few hundred. I did have them named (artist/groupname)-Title_remaining_words.mp3 I have them all renamed artist/group - title no underscores.mp3 I use mp3tag as well as tag&rename and have had a few instances where my tag/title got wacked out. I am nearing the end of the whole renaming process and do not want to start over. I would just like to see just the artist name in the taskbar plugin I am using do the scrolling because I can staticly put the album, artist, track number and year in the display. It scrolls the song name which also has the artist/group name. In other words, "I wanna make it pretty." :) |
That string didn't work. I tried a bunch more that made sense that it would do what I want, but it didn't. Like the if2(%title%(%contains%,%artist%)$cut and so forth, also tried a bunch more. I think it's not going to let me do it the way I would like it to do. I'm still plugging away at the formatting to see if by chance I stumble across the correct formatting.
Thanks again ryerman. |
Hi Old Skool,
If your title tag contains the artist name and song title separated by 3 characters (i.e. " - ") and these 3 characters do not occur together in the artist's name, then you should be able to extract the song title from the title tag by combining 3 string operations. What you need to do is put together an expression that will determine the number of characters in the %title% string ($len), subtract the number where the " - " starts in the %title% string ($strstr) + 2 to get the number of characters left in the %title% string (i.e. the number of characters in the song title), and use the $right string operation to return this number of characters from the end of the %title% string (i.e. the song title). In other words, say the artist name is 12 characters and the song title is 16 characters. So the total string length is 31 characters. The " - " starts at character number 13. 13 + 2 = 15. 31 - 15 = 16. The 16 characters at the end of the string are the song title. |
Quote:
code: Are you kidding me!! That has at least 5 syntax errors. And what is "%contains%"? You can't just skim the documentation and then create something that makes sense to you. The string must make sense to Winamp. The ATF code is like any other computer code: it must be used with correct syntax and with adherence to its own internal logic. Don't stumble. Be methodic and use "trial and error". Start small and build onto what works. Aminifu's instructions can be translated into this string: code: That works, just as the string I suggested in post #16 works. (As usual, there is more than one way to produce the desired result.) If neither string works for your files then perhaps your files are not tagged as you indicated. To be sure, you can post the desired title for a particular file and upload the file to a file sharing site. Include a link to the file in your post and we can check the files tag. |
Hi ryerman,
I wanted Old Skool to do the formatting himself, but you are probably right that it is better to provide the expression for him at this stage of his learning (and not specifying the $sub arithmetic operation might have thrown him off). When Old Skool said your suggestion in post #16 didn't work, I thought $split was objecting to the hypen and wanted a "/" instead. I should know better since you're the reigning ATF string formatting expert. ;) Either Old Skool copied the expression incorrectly or his file's title tag is not as indicated. He should provide a file for examination. |
Hi Aminifu
Yeah, I agree that it is better to encourage people to learn by doing. I felt a little guilty about providing the string based on your hints, but I'm over it now.;) FYI, my first suggestion code: will crash Winamp under certain conditions. I will make a bug report. Thanks for the compliment but rather than an expert, I'm just stubborn and persistent. I try to be methodical and use "trial and error", as I encouraged Old Skool. I'm betting an example file from Old Skool will be helpful. |
I apologize, The string you originally gave me works perfectly and exactly how it is meant to reyrman.
Quote:
I haven't been running around just trying whatever made sense to me in my head, or skimming through the help file. I have been trying what I thought I read in the ATF help file along with seeing formatting inside of Mp3Tag as Aminfu had suggested. I must have looked at something on one monitor and went to write it in another monitor and reversed something I had saw in the reference of what I wanted. Quote:
I have been working on getting the tags into back into my mp3 main directory since November and have been a little brain fried. I had ripped all the meta data out of the files many many many years ago. Plus I had them named (Artist/Group)-Song_Title.mp3 and if it was like a live version or remix it was named(Artist/Group)-Song_Title_{Live/Remix}.mp3. I decided to clean the directory up and rename and tag them again. I have been using Mp3Tag, along with Tag&Rename to do this and it has been a long drawn out process. I will be happy to upload a file for you guys to check out and make sure that it does have the correct tag and is done properly. What I have been putting in is the Artist, Album, Year, Original Artist, Album Art and encoded by me. And of course the filename has the artists/groups name in it, so it is in the title as well. I have also been wondering what bitrate would be the best sound for my system as well as other peoples including portable mp3 players. I have always used the 128/44 joint and Lame 3.99 for the encoder. https://www.sendspace.com/file/e4ak4a Let me know. Again thanks for your time and help. Oh, and the plugin is Windows Taskbar Integration 2.0 and I already sent them an email on how to as well. You guys have been a great help. |
Winamp's ATF, the Windows Taskbar Integration plug-in, and Mp3Tag all use different methods for formatting text. The fact that some of the variables are the same is just a coincidence. These 3 text string building formats are not interchangeable with each other.
You did mention the plug-in in post #13, but you asked how to prevent the artist name from being displayed in the playlist (the Winamp playlist was assumed). The Windows Taskbar Integration plug-in does not support stripping text from a file's title tag. |
Quote:
That is now unnecessary since you have confirmed that my suggested ATF string works. But I have learned that there is a bug in the $trim function that may crash Winamp. So use the suggested string in post #21. Many people create the tag first, with all the desired fields. (eg. %artist%, %albumartist%, %title%, etc.) The file is renamed last, using the tag values, according to whatever format you want. When you say "And of course the filename has the artists/groups name in it, so it is in the title as well.", it sounds as if you think the title must be the filename. But %title% usually contains only the song title. The filename can be anything you want. %title% and filename are usually different. |
No I know that the naming is artist/group - songname.mp3 and with Tag&Rename you can (and I have been) using the "Get Tags from File Name" option which puts the title as the title for that section. Needless to say as I had mentioned earlier I started this whole redoing my collection of for lack of better words "sorted and working" mp3's (meaning what I queue up and listen to on a daily basis is over 6800 files and I have them sorted in alphabetical order in Tag&Rename, I am roughly 500 or so files from finishing. To backtrack and take the artist out of the title, there really is not a quick and simple way to do it, and the same for renaming the files which I really don't want to rename the actual files again. As there are a few artists that have the same name of a song. would be kind of messy.
I saw that you had said that there is a bug and can cause Winamp to crash with the original string you gave me, which like I said worked exactly like it is supposed to for the actual Winamp playlist display. I noticed that mine had crashed a few times, and I just thought it was something I was doing. I switched over to the other string. Quote:
|
| All times are GMT. The time now is 23:05. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.