How I rickrolled my music library

I was considering some interesting custom rules which I could write a blog post about. I was about to write up a rule for formatting tagged dates in music files, but then inspiration struck - instead of doing something useful, why not use custom rules to rickroll my music library instead?

I'm not sure if this says more about me, or potentially the limited use of the custom rule idea! But I really, really do have some ideas for other useful custom rules to share, honest!

I copied the partofset.regexrule and set to work. I wanted the rule to set all track names to Never Gonna Give You Up.

So the main bit of thinking to do is: how to write the regular expression substitution? As this is a blanket find and replace, it's pretty simple:

find /^.*$/ replace with "Never Gonna Give You Up"

"find /^.*$/" means find all character strings, in their entirety. replace with "Never Gonna Give You Up" means... what it sounds like.

I tested the regular expression here. Click Java and you can see a test string. You can alter the regular expression to test alternatives.

Put the regular expression into a wider regex rule and we have...

Save that into rickroll.regexrule inside .bliss/regex-rules, restart bliss and under settings you'll see:

Setting to rickroll my music library

Choose Track name, Apply rules and you're good to go:

Fixes to rickroll my track names in the bliss inbox

Just a bit of fun... back to useful stuff next week!

Thanks to for the image above.
tags: meme custom rules

The Music Library Management blog

Dan Gravell

I'm Dan, the founder and programmer of bliss. I write bliss to solve my own problems with my digital music collection.