problem parsing rename scheme, preview works but not the actual process |
Please read foobar2000 Tech Support Forum Rules before posting and comply with all the points.
Failure to provide all the information pointed out in the above document in your post is considered wasting other people's time and in extreme cases will lead to your topic getting locked without a reply.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
problem parsing rename scheme, preview works but not the actual process |
Jul 31 2004, 01:12
Post
#1
|
|
![]() Group: Members Posts: 915 Joined: 15-December 01 From: Germany Member No.: 662 |
In 0.8.3 I'm having trouble using the rename function.
My rename scheme looks like this: CODE %artist% - %date% - %album%\[Disc %disc%\]%artist% - $num(%tracknumber%,2) - %title% As you can see, if the "disc" tag is present, a corresponding subdirectory should be created. While I am in edit mode, the preview works as expected. At the regular rename dialog preview, I get [SYNTAX ERROR IN FORMAT STRING] instead. The files are also renamed to "[SYNTAX...]".<ext>. This is independant of the file actually having the "disc" tag. I have created a screenshot illustrating the problem. |
|
|
|
Jul 31 2004, 01:22
Post
#2
|
|
![]() Group: Admin Posts: 3229 Joined: 30-September 01 Member No.: 84 |
Filename pattern is split by separators *before* parsing, to prevent possible slash characters in tags from being recognized as directory separators.
As for preview ignoring it - consider it a bug, noted, thanks for the report. Moving the backslash out of square brackets should do exactly what you want (more than one backslash in a row will be ignored): CODE %artist% - %date% - %album%\[Disc %disc%]\%artist% - $num(%tracknumber%,2) - %title%
-------------------- This job would be great if it wasn't for the users.
|
|
|
|
Jul 31 2004, 01:29
Post
#3
|
|
![]() Group: Members Posts: 915 Joined: 15-December 01 From: Germany Member No.: 662 |
Thank you for the fast reply. After moving the backslash, things work as expected. Problem solved!
|
|
|
|
Aug 6 2004, 13:20
Post
#4
|
|
|
Group: Members Posts: 134 Joined: 12-June 04 Member No.: 14643 |
Instead of starting a new thread...I can ask in this thread.....want a advanced string....
If the genre is has rock or metal, then the files should be in Rock, Metal\Artist\album, if the genre is r&b, then it should be in r&b\artist\album, and so on (just do those two, can figure out the rest myself), but if it is varioius artists, and the album has soundtrack or OST, then it should be in Soundtracks\,album\, but if disc exists, then it should be in Soundtracks\album\,cd %disc%. And if album doesn't have soundtrack, and it is variouis, then it should be like the soundtrack above, but in Samlingsskivor instead of Soundtracks. Thanks a Lot if you can help! |
|
|
|
Aug 6 2004, 13:39
Post
#5
|
|
![]() Group: Members Posts: 125 Joined: 20-November 03 Member No.: 9941 |
Random idea (haven't tested it, just typed it up, so there can be mistakes):
CODE $if(%various%,$if($or($strstr(%album%,soundtrack),$strstr(%album%,OST)),Soundtracks,Samlingsskivor),[%genre%])\ $if($or(%various%,$strstr(%album%,Soundtrack),$strstr(%album%,OST)),,[%artist%])\ [cd %disc%]\ [%tracknumber%] $if2(%title%,Unknown title) You haven't mentioned how you mark an album as VA, so I assumed you use %various%. This post has been edited by Ruby: Aug 6 2004, 13:39 |
|
|
|
Aug 6 2004, 20:04
Post
#6
|
|
|
Group: Members Posts: 134 Joined: 12-June 04 Member No.: 14643 |
QUOTE (Ruby @ Aug 6 2004, 04:39 AM) Random idea (haven't tested it, just typed it up, so there can be mistakes): CODE $if(%various%,$if($or($strstr(%album%,soundtrack),$strstr(%album%,OST)),Soundtracks,Samlingsskivor),[%genre%])\<!--QuoteEBegin-->$if($or(%various%,$strstr(%album%,Soundtrack),$strstr(%album%,OST)),,[%artist%])\<!--QuoteEBegin-->[cd %disc%]\<!--QuoteEBegin-->[%tracknumber%] $if2(%title%,Unknown title) You haven't mentioned how you mark an album as VA, so I assumed you use %various%. I am marking my various artist albums with a "," (without quotes), first in the folder the album is in, that's why I wanted various if path has ",". Thanks a lot...I can change the code for various myself. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 15:32 |