|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Jan 2004
Posts: 3
|
Advanced Title Formatting ($filepart()) filename parsing
Winamp 5.01, other specs do not matter in this case.
The "advanced title formatting" $filepart() parses filename incorrectly when there are tags specified before (or maybe in the same format). A good example of this bug is: Works correctly: $filepart(%filename%) Does NOT work correctly: $if([%artist%][ - %album%][ - $num(%tracknumber%,2)][ - %title%],[%artist%][ - %album%][ - $num(%tracknumber%,2)][ - %title%],$filepart(%filename%)) Now, (referring to the not working format) if the file does have ID tags, it works good allright but if it doesn't, and the filename is like "Artist - Almbum - Tracknumber - Title.mp3", the $filepart(%filename%) returns: "Artist - Album - Title" in which you can see the tracknumber is missing. There's no parse disabling option anywhere (as far as I know). Imho it shouldn't even parse the damned filename since there's no mention about it anywhere. Of course the automatical filename parsing is a good thing, IF it worked, AND if it could be SET OFF in case you didn't want it. Edit: I've noticed that in fact the "parsing" goes like this: Real filename&path: c:\mp3\ArtistDir\AlbumDir\Artist - Album - TrackNumber - Title.mp3 Will be formatted like this (with the format I've given above): Artist - AlbumDir - Title In short: "\a\b\x - y - ## - z.mpg" => "x - b - z" , where a and b are directories, and x, y, z and ## are parts of the filename. So it's worse than I firstly thought. Please fix it. Thanks, -Kari "Karma" Halme Last edited by karih83; 25th January 2004 at 11:09. |
|
|
|
|
#2 |
|
Techorator
Winamp & Shoutcast Team Join Date: Jun 2000
Posts: 35,894
|
Hmm, I do believe that this has got nothing to do with the Advanced Title Formatting string (although, admittedly, yours is one of the funkiest ATF's I've yet to see)
![]() I'm assuming here that you used v5.0 prior to 5.01... Did you also enter all these files into the library in 5.0? From the 5.01 whatsnew.txt * added gen_ml option for no guessing at all * made media library guess from filename only when NO metadata found * fixed gen_ml guessing bugs for files with metadata that are not in DB Then again, it wouldn't matter if the files were in the library or not if "Use library data for winamp title formatting" is checked in: Prefs -> Media Library -> Library Options. Your problem will probably go away if you uncheck this. Either that or you'll need to checkmark "no guessing" in: Prefs -> Media Library -> Media Importing -> Metadata Options then remove all files with no tags from the library and add them again... Note: If smart or simple metadata detection is enabled then, if no tags are found, Winamp always assumes the containing dir to be the album name. |
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2004
Posts: 3
|
"I'm assuming here that you used v5.0 prior to 5.01...
Did you also enter all these files into the library in 5.0?" Well, I installed 5.01 clean, but, I was blind and ignorant enough to skip the media library part of the options while configuring since I don't use it anyway. And never thought it would have any effect. =) Now it seems to work allright. Thankyou, Karma |
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|