Tagging: $if a String contains another String

Get answers about using MediaMonkey 4 for Windows.

Moderator: Gurus

derKaba
Posts: 2
Joined: Thu Mar 20, 2014 4:32 pm

Tagging: $if a String contains another String

Post by derKaba »

Hi,
what I want is to Name my movie files like this e.g.: Lord of the Rings [720p]
(--> <Title> [<Quality>] (if this "Quality" tag would exist))
while the parent folder has the information I need in it, i want this "720p" to be in the filename too.
So i want to search the parent folders string for "720p" and then write it in the filename.

All I tried was something like this:
.\<Title> $if(<Path>= 720p, [720p],)
in words: if the parent folder string contains the string "720p", then write [720p] into the filename, else write nothing.
I also tried <Path>= *720p* or *"720p"* or *'720p'* . But it doesn't work, because i think, that "=" really only wants to have an exact match.

Is there an operator I can use for this problem?

Thanks in advance!
Lowlander
Posts: 56584
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Tagging: $if a String contains another String

Post by Lowlander »

You can't do contains.
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: Tagging: $if a String contains another String

Post by nohitter151 »

Only way to do something like this in MM is to use collections and auto-organize (options > Auto-organize). The collection identifies the files (you can use "Contains" in path or other fields)
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
derKaba
Posts: 2
Joined: Thu Mar 20, 2014 4:32 pm

Re: Tagging: $if a String contains another String

Post by derKaba »

nohitter151 wrote:Only way to do something like this in MM is to use collections and auto-organize (options > Auto-organize). The collection identifies the files (you can use "Contains" in path or other fields)
Thanks for the answers. Could you give me an example of the syntax I have to use?
Obviously it's not: .\$if(<Path> "Contains" "720p", [720],)

Edit: ah, ok, I see that this "Options->Auto-Organize" is only available for Gold Version. Damn
Mizery_Made
Posts: 2283
Joined: Tue Aug 29, 2006 1:09 pm
Location: Kansas City, Missouri, United States

Re: Tagging: $if a String contains another String

Post by Mizery_Made »

The RegExp Find & Replace script may be able to accomplish this for you.
Becks0815
Posts: 4
Joined: Sun Mar 23, 2014 8:28 am

Re: Tagging: $if a String contains another String

Post by Becks0815 »

Hi,
I am also searching for a solution for this or a similar problem. I want to fill tags if a string in the path/filename is found (e.g. string 720p exists in the filename then add 720p to the title tag). How can this be achieved with RegExp Find & Replace script ?

Or is this only possible with the auto organize scripts?
dtsig
Posts: 3588
Joined: Mon Jan 24, 2011 6:34 pm

Re: Tagging: $if a String contains another String

Post by dtsig »

Your best bet is to put that question in the Regedit find and repace thread.

Here .. http://www.mediamonkey.com/forum/viewto ... =2&t=28510
Where's the db and ini stored
Reporting Bugs
Where tags are stored

Not affiliated with MediaMonkey ... just a RABID user/lover
DTSig
Post Reply