More > JRiver Media Center 26 for Linux

auto Import rules, can I put multiple custom strings in one tag rule?

<< < (2/2)

lepa:
My bad. Should have read the function description. So SaveAdd doesn't need square brackets for variable and needs option 1 to append as string.
ListClean with options 1 and 3 to remove duplicates and empty items

https://wiki.jriver.com/index.php/Accessing_and_Storing_Functions#SaveAdd
https://wiki.jriver.com/index.php/List_Manipulation_Functions#ListClean


--- Code: ---Save([Grouping], v_Grouping)/

If(Regex([name], /#(instrumental|inst[\]\)]|inst\.\)|[\( ]inst\.)#/, 0, 0),
    SaveAdd(v_Grouping, ;IN,1),
)/

If(Regex([album], /#(instrumental|inst[\]\)]|inst\.\)|[\( ]inst\.)#/, 0, 0),
    SaveAdd(v_Grouping, ;IN,1),
)/

If(Regex([name], /#(Live |\([Ll]ive\)|[Ll]ive [Vv]ersion|[Ll]ive [Ii]n|[Ll]ive [Aa]t| Live$)#/, 0, 0),
    SaveAdd(v_Grouping, ;LV,1),
)/

If(Regex([album], /#(Live |\([Ll]ive\)|[Ll]ive [Vv]ersion|[Ll]ive [Ii]n|[Ll]ive [Aa]t|^[Ll]ive| Live$)#/, 0, 0),
    SaveAdd(v_Grouping, ;LV,1),
)/

If(Regex([name], /#(remix|rmx|\(.*mix.*\))#/, 0, 0),
    SaveAdd(v_Grouping, ;RX,1),
)/

ListSort(ListClean(ListClean([v_Grouping],1),3))
--- End code ---

zetetic:
Thanks, works a treat now

This is my new auto import grouping rule:

--- Code: ---Save([Grouping], v_Grouping)/

If(Regex([name], /#(instrumental|inst[\]\)]|inst\.\)|[\( ]inst\.)#/, 0, 0),
    SaveAdd(v_Grouping, ;IN,1),
)/

If(Regex([album], /#(instrumental|inst[\]\)]|inst\.\)|[\( ]inst\.)#/, 0, 0),
    SaveAdd(v_Grouping, ;IN,1),
)/

If(Regex([name], /#(Live |\([Ll]ive\)|[Ll]ive [Vv]ersion|[Ll]ive [Ii]n|[Ll]ive [Aa]t| Live$)#/, 0, 0),
    SaveAdd(v_Grouping, ;LV,1),
)/

If(Regex([album], /#(Live |\([Ll]ive\)|[Ll]ive [Vv]ersion|[Ll]ive [Ii]n|[Ll]ive [Aa]t|^[Ll]ive| Live$)#/, 0, 0),
    SaveAdd(v_Grouping, ;LV,1),
)/

If(Regex([name], /#(remix|rmx|\(.*mix.*\))#/, 0, 0),
    SaveAdd(v_Grouping, ;RX,1),
)/

If(Regex([name], /#([^a-z]skit[^a-z]|^skit[^a-z]|[^a-z]skit$)#/, 0, 0),
    SaveAdd(v_Grouping, ;SK,1),
)/

If(Regex([artist], /#(Dead Cross|Faith No More|Fantômas|Hemophiliac|House Of Discipline|Lovage|Maldoror|Mike Patton|Mr. Bungle|Nevermen|Peeping Tom|Tētēma|The Fantômas Melvins Big Band|Tomahawk|Weird Little Boy)#/, 0, 0),
    SaveAdd(v_Grouping, ;00;MP,1),
)/

If(Regex([artist], /#(Activities Of Dust|Arcana|Astral Night Rollers|Autonomous Zone|Axiom Funk|Bass Invaders|Bill Laswell|Blind Light|Blixt|Blue Buddha|Buck Jam Tonic|Charged|Cobra Strike|Curlew|Cymatic Scan|Deadline|Divination|Dubadelic|Equations Of Eternity|Flying Mijinko Band|Ginger Baker Band|Jah Wobble's Solaris|Last Exit|Mandingo|Massacre|Material|Method Of Defiance|Mooko|Mumpbeak|New York Gong|Niels & The New York Street Percussionists|Operazone|Outland|PainKiller|Phantom City|Possession|Praxis|Psychonavigation|Purple Trap|Radioaxiom|Second Nature|Shango|Somma|Surds|SXL|Sypher|Tabla Beat Science|Telesterion|The Big Guns|The Blood Of Heroes|The Golden Palominos|Third Rail|Tokyo Rotation|Toy Killers|U.M.A.|Web )#/, 0, 0),
    SaveAdd(v_Grouping, ;BL,1),
)/

ListSort(ListClean(ListClean([v_Grouping],1),3))

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version