Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: replace underscore symbol with space (Read 3598 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

replace underscore symbol with space

hello all,

is there any way to solve this annoyance?

i'm subscribed to a large number of podcasts and some of them are not tagged. i set up foobar to display filenames if no titles are available.

the problem is that some of the filenames contain underscores and they also get displayed in foobar, making the titles harder to read. also, they don't look to nice either

so, is there any way to get around this?

note: i can't tag them myself because my podcast client will then re-download them.

replace underscore symbol with space

Reply #1
use file operations found on the context menu to rename them (if you don't see this, then re-run the foobar installer and check the option to install it. all your current settings will remain intact)

filename pattern:
Code: [Select]
$replace(%filename%,_, )

replace underscore symbol with space

Reply #2
use file operations found on the context menu to rename them (if you don't see this, then re-run the foobar installer and check the option to install it. all your current settings will remain intact)

filename pattern:
Code: [Select]
$replace(%filename%,_, )


thanks for replying.

but i wasn't looking for a way to rename them en-mass. i was just asking if there was a way to make foobar not display underscores.


but eventually i think i'm going to have to use your method.

replace underscore symbol with space

Reply #3
ok, you can simply create your own custom "title" column like this...

Code: [Select]
$replace(%title%,_, )


edit: of course that would replace any genuine underscores in your tags as well. maybe this would be better....

Code: [Select]
$if2($meta(title),$replace(%title%,_, ))


that would display the title tag un-modified if it exists.

replace underscore symbol with space

Reply #4
^ the last one you posted works well for me  thank you!