This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PERFORMER "Roald Dahl" | |
TITLE "Fantastic Mr Fox" | |
FILE "Fantastic Mr Fox.mp3" MP3 | |
TRACK 01 AUDIO | |
PERFORMER "Roald Dahl" | |
TITLE "the three farmers" | |
INDEX 01 00:00:00 | |
TRACK 02 AUDIO | |
PERFORMER "Roald Dahl" | |
TITLE "mr fox" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00:00:33,150 --> 00:00:35,490 | |
chapter one the three farmers | |
4 | |
00:00:37,770 --> 00:00:39,120 | |
down in the valley there were three | |
-- | |
00:02:30,600 --> 00:02:32,910 | |
chapter two mr fox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find HTML encoding and replace with the decoded value | |
rule find_replace_html_encoding with label "Find and replace HTML encoding" has alternatives | |
HTML_DECODED { | |
find /"/ replace with "\"" | |
find /#/ replace with "#" | |
find /$/ replace with "$" | |
find /%/ replace with "%" | |
find /&/ replace with "&" | |
find /</ replace with "<" | |
find />/ replace with ">" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [Describe the find/replace rule here] | |
rule find_replace_[rulename] with label "Find and replace [detail]" has alternatives | |
[RESULT] { | |
find /[find regex, may include groups]/ replace with "[Substitution string, may include group references]" | |
} | |
applies to [tag names, e.g. album_artist, album_name] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=bliss | |
After=network.target | |
[Service] | |
Type=simple | |
# Another Type option: forking | |
User=music | |
WorkingDirectory=/opt/bliss | |
ExecStart=/opt/bliss/bin/bliss.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rule trim_brackets with label "Trim square brackets" has alternatives | |
DEBRACKET { | |
find /^\[*([^\]]*)\]*$/ replace with "$1" | |
} | |
applies to genre |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace 'Various' with 'Various Artists' | |
rule force_va with label "Force Various Artists" has alternatives | |
VARIOUS_ARTISTS { | |
find /^Various$/ replace with "Various Artists" | |
} | |
applies to album_artist, artist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ROOT_SOURCE_DIR=$1 | |
ROOT_DEST_DIR=$2 | |
TARGET_FORMAT=$3 | |
# ensure the destination directory structure exists | |
mkdir -p $ROOT_DEST_DIR | |
# loop through all files in the source directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Looks for artist names starting with "The" and moves it to the end of the artist name string | |
rule sortorderthe with label "Move 'The' to end of artist names" has alternatives | |
SUFFIX { | |
find /^(?i)(The)\s(.*)$/ replace with "$2, $1" | |
} | |
applies to artist, album_artist |
NewerOlder