getmusicbee.com

General => MusicBee Wishlist => Topic started by: mikhaw20 on August 15, 2021, 11:10:24 PM

Title: Auto-Playlists: Add "starts with" and "ends with" in "Genre" field
Post by: mikhaw20 on August 15, 2021, 11:10:24 PM
Smart Playlists in iTunes lets you sort the "Genre" field by "starts with" and "ends with" -- MusicBee has those for other fields in Auto-Playlist (like "Artist" and "Comments"), but not for Genre.  Help me cut iTunes out of my life like a toxic friend?
Title: Re: Auto-Playlists: Add "starts with" and "ends with" in "Genre" field
Post by: Zak on August 17, 2021, 06:59:24 AM
You can do this using match RegEx rules with extra characters to match the start or end of the genre.
The /i version makes the comparison case-insensitive.

Use a ^ to match only at the start of the genre.
e.g.
Genre > match RegEx /i > ^Rock

(https://i.imgur.com/zpgmDV6.png)
This will match  "Rock" and "Rock & Roll", but not "Progressive Rock"

Use a $ to match only at the end of the genre.
e.g.
Genre > match RegEx /i > Rock$

(https://i.imgur.com/bm3YJ3e.png)
This will match  "Rock" and "Alternative Rock", but not "Rock & Roll"
Title: Re: Auto-Playlists: Add "starts with" and "ends with" in "Genre" field
Post by: mikhaw20 on August 24, 2021, 02:02:31 AM
That looks like it solved my problem.  Thanks much!