IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

 
Closed TopicStart new topic
> Filter expressions, Examples of filter expressions
dano
post Mar 11 2010, 19:37
Post #1


Moderator


Group: Moderators
Posts: 5680
Joined: 4-September 03
From: Germany
Member No.: 201
Mp3tag Version: 2.61d



This thread collects useful Filter expressions

If you have a useful filter expression, please post it here and give a short description of what it does.

These filter expressions can be used with the Mp3tag filter [F3].

Please look at http://help.mp3tag.de/main_filter.html for the documentation.

Notes
-All filter keywords must be uppercase.
-All operations are case insensitive*

* For a workaround see below:
http://forums.mp3tag.de/index.php?showtopi...amp;#entry45520

This post has been edited by dano: Jan 21 2014, 18:40


--------------------
Go to the top of the page
 
+Quote Post
dano
post Mar 11 2010, 19:38
Post #2


Moderator


Group: Moderators
Posts: 5680
Joined: 4-September 03
From: Germany
Member No.: 201
Mp3tag Version: 2.61d



Simple filter

All files without tags:
%_tag% IS ""

Files with flac and ID3v2 tags:
%_tag% HAS "flac id3v2"

Files with mp4 extension
%_extension% IS mp4

All files with a bitrate over 180
%_bitrate% GREATER 180

All files with embedded covers over 20 kbyte
%_cover_size% GREATER 20480

This post has been edited by dano: Mar 18 2010, 09:57


--------------------
Go to the top of the page
 
+Quote Post
dano
post Mar 11 2010, 19:38
Post #3


Moderator


Group: Moderators
Posts: 5680
Joined: 4-September 03
From: Germany
Member No.: 201
Mp3tag Version: 2.61d



Filter with Scripting

Check if a field is longer than 4 characters:
"$len(%bpm%)" GREATER 4

Files with multipe artist tags:
"$meta_sep(Artist,\\)" HAS \\

Check if two fields have the same value:
"$if($eql(%artist%,%band%),yes,no)" IS yes

Check if the title is part of the filename:
"$ifgreater($strstr(%_filename%,%title%),0,yes,no)" IS yes

This post has been edited by dano: Mar 15 2010, 12:04


--------------------
Go to the top of the page
 
+Quote Post
dano
post Mar 16 2010, 21:10
Post #4


Moderator


Group: Moderators
Posts: 5680
Joined: 4-September 03
From: Germany
Member No.: 201
Mp3tag Version: 2.61d



Filter with Regex (regular expression)

Track numbers that have number/number syntax
track MATCHES \d\/\d

Filenames that start with two digits:
%_filename% MATCHES ^\d\d

Filenames that start with two digits not followed by another digit:
%_filename% MATCHES ^\d\d\D

Case sensitive filter:
title MATCHES (?-i)regex

Files with characters that are not in ISO-8859-1 in tag or filename
* MATCHES [\x{0100}-\x{FFFF}]

This post has been edited by dano: Dec 6 2010, 11:27


--------------------
Go to the top of the page
 
+Quote Post
dano
post Dec 6 2010, 11:24
Post #5


Moderator


Group: Moderators
Posts: 5680
Joined: 4-September 03
From: Germany
Member No.: 201
Mp3tag Version: 2.61d



Filenames with 2 hyphens
"$len($regexp(%_filename%,'[^-]',))" IS 2

Filenames with at least 2 hyphens
"$len($regexp(%_filename%,'[^-]',))" GREATER 1

Track number is a single digit
track MATCHES ^\d$

Title tag starts with four capital letters
"$if($eql($regexp(%title%,^\u\u\u\u,),%title%),yes,no)" IS no

This post has been edited by dano: Dec 6 2010, 11:36


--------------------
Go to the top of the page
 
+Quote Post

Closed 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: 30th July 2014 - 18:11