Post Reply 
Display chosen text if Tag field is blank
30-03-2026, 15:45 (This post was last modified: 30-03-2026 16:02 by redged.)
Post: #1
Display chosen text if Tag field is blank
Hello

Just wondering how I can display a pre determined text if the Tag field is empty (perhaps using the TagUpdate)?

Apologies if this has already been cvered but struggling to find the answer.

I use MEDIATYPE tag for Vinyl, Mp3, Box Set, Single etc. However this is a recent addition to how I do my library and I have thousands of files with the MEDIATYPE tag left empty. As these were digital rips, I wish to insert Digital, currently it shows as [unknown].

   

I have tried the following in my tagUpdate text file but hasn't worked

@MEDIATYPE=
+MEDIATYPE=Digital

As always thanks in advance for your help.

Ged
Find all posts by this user
Quote this message in a reply
30-03-2026, 18:47 (This post was last modified: 30-03-2026 18:48 by stefano_mbp.)
Post: #2
RE: Display chosen text if Tag field is blank
You can use an alias:
- in aliasTags set MEDIATYPE:MEDIA-TYPE
- in indexTag set MEDIA-TYPE
- in tagValue set MEDIA-TYPE.default={‘Digital’}, MEDIA-TYPE.merge={MEDIATYPE}
Remove MEDIATYPE from indexTags/itemTags
Rescan the library
Find all posts by this user
Quote this message in a reply
30-03-2026, 19:56
Post: #3
RE: Display chosen text if Tag field is blank
(30-03-2026 18:47)stefano_mbp Wrote:  You can use an alias:
- in aliasTags set MEDIATYPE:MEDIA-TYPE
- in indexTag set MEDIA-TYPE
- in tagValue set MEDIA-TYPE.default={‘Digital’}, MEDIA-TYPE.merge={MEDIATYPE}
Remove MEDIATYPE from indexTags/itemTags
Rescan the library

Great thanks. Quick question before I go ahead, is this a permanent change to the tags or will everything go back to the way it was before if I change my settings back?

Cheers

Ged
Find all posts by this user
Quote this message in a reply
30-03-2026, 20:05
Post: #4
RE: Display chosen text if Tag field is blank
(30-03-2026 18:47)stefano_mbp Wrote:  You can use an alias:
- in aliasTags set MEDIATYPE:MEDIA-TYPE
- in indexTag set MEDIA-TYPE
- in tagValue set MEDIA-TYPE.default={‘Digital’}, MEDIA-TYPE.merge={MEDIATYPE}
Remove MEDIATYPE from indexTags/itemTags
Rescan the library

I might be missing something obvious but why isn't it sufficient to just do this:
- in tagValue set MEDIATYPE.default={‘Digital’}
Find all posts by this user
Quote this message in a reply
30-03-2026, 20:27
Post: #5
RE: Display chosen text if Tag field is blank
I might be missing something obvious but why isn't it sufficient to just do this:
- in tagValue set MEDIATYPE.default={‘Digital’}
[/quote]

That worked, thanks Simon.
Find all posts by this user
Quote this message in a reply
30-03-2026, 20:38
Post: #6
RE: Display chosen text if Tag field is blank
To answer your other question, this isn't a permanent change to your tags. The value Digital for MEDIATYPE is internal to MinimServer.
Find all posts by this user
Quote this message in a reply
30-03-2026, 21:00
Post: #7
RE: Display chosen text if Tag field is blank
… it seems I like to take the longest way ….
Find all posts by this user
Quote this message in a reply
01-04-2026, 12:22
Post: #8
RE: Display chosen text if Tag field is blank
OK, so tried something similar for YEAR tags but saying 'Incorrect tag name 'YEAR' in property 'tagValue''

Any ideas?

Thanks in advance Ged
Find all posts by this user
Quote this message in a reply
01-04-2026, 17:56
Post: #9
RE: Display chosen text if Tag field is blank
(01-04-2026 12:22)redged Wrote:  OK, so tried something similar for YEAR tags but saying 'Incorrect tag name 'YEAR' in property 'tagValue''

Before you can apply tag customisations it must first be referenced in either indexTags or itemTags e.g.
Code:
itemTags: Year

Do you have a Year and Date tag? I think Year is only valid in Vorbis comments (FLAC/OGG): https://minimserver.com/ug-library.html#Tag%20mappings
Find all posts by this user
Quote this message in a reply
01-04-2026, 20:31
Post: #10
RE: Display chosen text if Tag field is blank
A year value should be tagged using the DATE tag. The value for this tag can be a year (YYYY), a year and month (YYYY-MM) or a year, month and day (YYYY-MM-DD).

Confusingly, some tagging programs display this DATE value as Year. It is possible that some control point apps might also do this.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)