![]() |
|
Display chosen text if Tag field is blank - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: Support (/forumdisplay.php?fid=4) +--- Thread: Display chosen text if Tag field is blank (/showthread.php?tid=7775) |
Display chosen text if Tag field is blank - redged - 30-03-2026 15:45 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]. [attachment=3541] 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 RE: Display chosen text if Tag field is blank - stefano_mbp - 30-03-2026 18:47 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 RE: Display chosen text if Tag field is blank - redged - 30-03-2026 19:56 (30-03-2026 18:47)stefano_mbp Wrote: You can use an alias: 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 RE: Display chosen text if Tag field is blank - simoncn - 30-03-2026 20:05 (30-03-2026 18:47)stefano_mbp Wrote: You can use an alias: I might be missing something obvious but why isn't it sufficient to just do this: - in tagValue set MEDIATYPE.default={‘Digital’} RE: Display chosen text if Tag field is blank - redged - 30-03-2026 20:27 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. RE: Display chosen text if Tag field is blank - simoncn - 30-03-2026 20:38 To answer your other question, this isn't a permanent change to your tags. The value Digital for MEDIATYPE is internal to MinimServer. RE: Display chosen text if Tag field is blank - stefano_mbp - 30-03-2026 21:00 … it seems I like to take the longest way …. RE: Display chosen text if Tag field is blank - redged - 01-04-2026 12:22 OK, so tried something similar for YEAR tags but saying 'Incorrect tag name 'YEAR' in property 'tagValue'' Any ideas? Thanks in advance Ged RE: Display chosen text if Tag field is blank - simbun - 01-04-2026 17:56 (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: YearDo 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 RE: Display chosen text if Tag field is blank - simoncn - 01-04-2026 20:31 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. |