IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

"Undoing" AutoCapitilise ?
swayzak
post Nov 8 2008, 01:15
Post #1





Group: Members
Posts: 214
Joined: 23-August 05
Member No.: 24082



hi

After a few too many glasses of wine ( wink.gif ) I stupidly Capitilised my entire 160GB music collection - thereby correcting some annoying problems with letters, but creating annoying problems

e.g all "DJ"s became Dj, MCs to Mc, vol II to vol Ii, CD1 to Cd1 etc.

Is there anyway I can correct this relatively painlessly ?


PS. FB2K is far to powerful a tool to be toyed with on alcohol ...
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Lyx
post Nov 8 2008, 02:42
Post #2





Group: Members
Posts: 3353
Joined: 6-July 03
From: Sachsen (DE)
Member No.: 7609



Here's a better fix, since i became "victim" of the same problem a while ago:

CODE
[$trim($replace($meta(title)' ',' ep ',' EP ',' Ep ',' EP ',' cd ',' CD ',' Cd ',' CD ',' dj ',' DJ ',' Dj ',' DJ ',' Ii ',' II ',' Iii ',' III ',' Iv ',' IV ',' Vi ',' VI ',' Vii ',' VII ',' Viii ',' VIII ',' Ix ',' IX '))]


Replace $meta(title) with any field of your choice.


Explanation:
This avoids three issues. First, by making the whole string [conditional], the return will never be "?" and therefore the field will not be created if it doesn't exist. Second, by using $meta() it avoids fieldremappings. Third, by first adding a space to the end of the value and then trimming it away again, you avoid accidentally doing false matches. For example, ' ep' would also match ' episode', thus turning it into ' EPisode'. Since there is no way to define "end of value", i simply cheat by first adding a space to the end of the value, so that we can just match ' ep '. Then after the replacement i $trim the space away again.
Go to the top of the page
+Quote Post
kwanbis
post Nov 8 2008, 23:28
Post #3





Group: Developer (Donating)
Posts: 2362
Joined: 28-June 02
From: Argentina
Member No.: 2425



QUOTE (Lyx @ Nov 8 2008, 01:42) *
Second, by using $meta() it avoids fieldremappings.

Sorry, what do you mean?


--------------------
MAREO: http://www.webearce.com.ar
Go to the top of the page
+Quote Post

Posts in this topic
- swayzak   "Undoing" AutoCapitilise ?   Nov 8 2008, 01:15
- - Andreasvb   You can use Mp3tag and create actions that replace...   Nov 8 2008, 01:27
|- - swayzak   QUOTE (Andreasvb @ Nov 7 2008, 18:27) You...   Nov 8 2008, 01:31
|- - Canar   QUOTE (swayzak @ Nov 7 2008, 16:31) PS Is...   Nov 8 2008, 02:16
- - Yirkha   Awfully late, however: Properties for all items ...   Nov 8 2008, 01:42
- - Lyx   Here's a better fix, since i became "vict...   Nov 8 2008, 02:42
|- - kwanbis   QUOTE (Lyx @ Nov 8 2008, 01:42) Second, b...   Nov 8 2008, 23:28
|- - Lyx   QUOTE (kwanbis @ Nov 8 2008, 23:28) QUOTE...   Nov 8 2008, 23:33
|- - kwanbis   QUOTE (Lyx @ Nov 8 2008, 22:33) Example: ...   Nov 8 2008, 23:47
- - Frank Bicking   You don't actually need any of those apostroph...   Nov 8 2008, 02:46
|- - Lyx   Same reply as yesterday. If whitespace is importan...   Nov 8 2008, 02:47
|- - Lyx   P.S.: Doing such replacement operations for MC ca...   Nov 8 2008, 03:09
|- - odyssey   QUOTE (Lyx @ Nov 8 2008, 03:09) P.S.: Do...   Nov 9 2008, 19:20
- - Lyx   Just tested - the answer is "yes".   Nov 8 2008, 23:52
- - swayzak   Wow - so many further helpful replies ! Thanks...   Nov 9 2008, 01:08
|- - swayzak   QUOTE (swayzak @ Nov 8 2008, 18:08) Wow -...   Nov 9 2008, 01:21
- - Lyx   Works here with 0.9.6 beta. The behaviour of that ...   Nov 9 2008, 02:30
- - Yirkha   You'd need to add another space between ...   Nov 9 2008, 04:52
|- - swayzak   QUOTE (Yirkha @ Nov 8 2008, 21:52) You...   Nov 9 2008, 12:00
- - swayzak   I've tried to adapt that string to correct the...   Nov 9 2008, 12:59
- - Yirkha   The column "Title" is apparently only fo...   Nov 9 2008, 13:07
|- - swayzak   QUOTE (Yirkha @ Nov 9 2008, 06:07) The co...   Nov 9 2008, 13:22
- - Yirkha   No. Besides, no changes are done to your files unt...   Nov 9 2008, 13:26
- - swayzak   Thanks. Does FB2K have an undo function that coul...   Nov 9 2008, 13:49
- - Yirkha   No. The closest you can get to such a feature woul...   Nov 9 2008, 14:12
- - swayzak   OK - thanks. That's useful to know ..   Nov 9 2008, 14:15
- - Mar2zz   What is the order of process in your string, odyss...   Nov 9 2008, 20:20
|- - odyssey   QUOTE (Mar2zz @ Nov 9 2008, 20:20) What i...   Nov 9 2008, 22:27
- - Purple Monkey   I think Mar2zz meant that if you have the title ...   Nov 10 2008, 00:13
- - odyssey   I see it now. It's true with the string I post...   Nov 10 2008, 09:36
- - Mar2zz   That could be solved with nesting your string insi...   Nov 10 2008, 11:17
- - odyssey   AFAIR, that's exactly what I'm doing. The ...   Nov 10 2008, 13:21
- - Lyx   Coming soon to a screen near you: From the peop...   Nov 10 2008, 18:39
- - foorious   Hi everyone, Just a few words to say that unless ...   Nov 16 2008, 03:34


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th August 2014 - 19:44