Skip to content

Instantly share code, notes, and snippets.

@gravelld
Created March 29, 2016 11:29
Show Gist options
  • Save gravelld/b47557200ff75b326abe to your computer and use it in GitHub Desktop.
Save gravelld/b47557200ff75b326abe to your computer and use it in GitHub Desktop.
# Rule to limit artist fields to 76 characters, as per https://sonos.custhelp.com/app/answers/detail/a_id/1552/kw/tag%20character%20limit
# Offers a one-click fix to truncate the artist or album artist name to exactly 76 characters.
rule sonosArtistCharLimit with label "Sonos artist character limit" has alternatives
76_CHARS {
find /^(.{0,76}+).+$/ replace with "$1"
}
applies to artist, album_artist
@gravelld
Copy link
Author

A regular expression rule to identify and fix artist names longer than the Sonos character length limit - http://www.blisshq.com/music-library-management-blog/2016/03/29/sonos-character-limits/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment