View Single Post
Old 02-02-2025, 02:52 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,829
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by capink View Post
Code:
program:
    contains(field('format'), '(mp3|m4a|m4b)', 'Audiobook available', '')
Edit: The pattern highlighted in blue, is a regular expression that can match multiple formats.
I use similar templates to attach audio and/or video icons to 'books' that have audio and/or video format files.

BR
BetterRed is offline   Reply With Quote