Filtering on a list of discs

I have disc IDs of the form - e.g. 00044006483429-2, and want an Mp3tag filter expression to target a set of thousands of them.

What is the preferred expression form? The best I have come up with is

(GTIN IS 00044006483429 AND DISCNUMBER MATCHES ^2/) OR...

but that's going to make a very long string ... and I am wary of whatever limit the filter has, not to mention the execution time.

Any advice gratefully received. Thanks.

The Mp3tag Filter has no count method or such thing.
But there may be a way, anyway, there will be always a way.

Here is a totally quick shot to split the whole amount into smaller packages.

Create a new tag field NR, format value it with %_COUNTER%, so that all the tracks get a running number.
Set Filter to:
(NR GREATER 0) AND (NR LESS 20)

Try other values ...
Good luck!

DD.20100825.2057.CEST

Thanks Detlev, but I do need the view to include all the discs. Viewing thousands of discs twenty at a time is not practical for this task.

You make me laugh!
Did you try other values within the filter expression?
For example:
(NR GREATER 0) AND (NR LESS 1001)
(NR GREATER 1000) AND (NR LESS 2001)
(NR GREATER 2000) AND (NR LESS 3001)
(NR GREATER 3000) AND (NR LESS 4001)
...
;-)))

DD.20100826.1916.CEST

No, because I do need the view to include all the discs.

chrisjj, at first you wrote "want an Mp3tag filter expression to target a set of thousands of them".

Sorry, it seems so, that I did not understand your problem.

DD.20100827.0350.CEST

Next two attempts.

This will match the complete set of tracks with a DISCID of the specified format.
Filter: DISCID MATCHES "^\d{14}-\d$"

... will match ...
00044006483428-1
00044006483429-2
99944006483430-0
... and so on.

This will match the complete set of tracks with a 14-digit number in tag-field GTIN and a 1-digit number in tag-field DISCNUMBER.
Filter: (GTIN MATCHES "\d{14}") AND (DISCNUMBER MATCHES "\d")

By the way ... there is an interesting resume and related links about the GTIN:
http://www.tango.info/wiki/GTIN
...
http://www.gepir.de/v31_client/gtin.aspx
http://de.wikipedia.org/wiki/GTIN

DD.20100827.0958.CEST

Aologies - my fault for not being clear.

I have a list of thousands of disc ID e.g.

00044006483428-1
00044006483429-2
99944006483430-0
...

and I want the view to show only all tracks matching them.

My best solution is a new-format filter string

(GTIN IS 00044006483428 AND DISCNUMBER MATCHES ^1/) OR (GTIN IS 00044006483429 AND DISCNUMBER MATCHES ^2/) OR (GTIN IS 99944006483430 AND DISCNUMBER MATCHES ^0/) OR ...

but I would like one better for filter string limit and execution time if possible.

Thanks. I saw that when I last edited it :slight_smile: