config: music playing configuration

This commit is contained in:
xeruf 2021-10-22 17:14:41 +02:00
parent 7127ffe29d
commit 546a01b43e
6 changed files with 112 additions and 21 deletions

View File

@ -1,7 +1,27 @@
{
"w&ith:": {
"values": [
""
"",
"AK",
"We Are All Astronauts",
"We Are All Astronauts feat. Sergio Diaz De Rojas",
"Muzzy",
"/home/janek/data/music/Mixes/Mashes",
"Hillsong United",
"Florence Joy",
"Sarah Albrecht/Dominik Laim/ICF Worship",
"A Billion Robots",
"Arion",
"Bossfight",
"Eminence & Soulero",
"DJVI",
"/home/janek/data/music/Electronic/_Youtube",
"/home/janek/data/music/Electronic/Liquicity/Alchemy",
";",
" ",
"Mr FijiWiji, Soulero - Nebula.flac",
"Mr FijiWiji, Direct, & Aruna",
";"
]
},
"&Output": {
@ -48,7 +68,16 @@
"feint",
"hi",
"dnb",
""
"weare",
"weareelev",
"eleva",
"rival",
"veela",
"chillstep",
"fijiwiji",
"Richards",
"I Remember You",
"I Remember You"
]
},
"&Pattern": {
@ -63,7 +92,29 @@
},
"&Replace": {
"values": [
""
"",
".* & .*",
".* \\& .*",
"AK",
"We Are All Astronauts",
"We Are All Astronauts feat. Sergio Diaz De Rojas",
"Muzzy",
"/home/janek/data/music/Mixes/Mashes",
"Hillsong United",
"Florence Joy",
"Sarah Albrecht/Dominik Laim/ICF Worship",
"A Billion Robots",
"Arion",
"Bossfight",
"Eminence & Soulero",
"DJVI",
"/home/janek/data/music/Electronic/_Youtube",
"/home/janek/data/music/Electronic/Liquicity/Alchemy",
" ;",
" ",
"Mr FijiWiji, Soulero - Nebula.flac",
"Mr FijiWiji, Direct, & Aruna",
",;"
]
},
"&Format string": {
@ -77,5 +128,30 @@
"https://soundcloud.com/icf-berlin-fhain/%year%-fh",
"https://soundcloud.com/icf-berlin-fhain/%date%-fh"
]
},
"&Regular Expression": {
"values": [
"(.*) & (.*)",
"(.*) (&|fe?a?t.) (.*)",
"(.*) (&|fe?a?t.?) (.*)",
"(.*) (&|fe?a?t.?|x) (.*)",
"(.*)( (&|fe?a?t.?|x) |/)(.*)",
".*/ICF",
"(.*)( (&|fe?a?t.?|x) |/|, )(.*)",
"(.*)( (&|fe?a?t(uring)?.?|x|and) |/|, )(.*)",
"(.*)( (&|fe?a?t(uring)?.?|x|and|/) |/|, )(.*)",
"(.*)( (&|fe?a?t(uring)?.?|x|and|/|\\+) |/|, )(.*)",
"(.*)( (&|fe?a?t(uring)?.?|x|and|/|\\+) |/|, )(.*)"
]
},
"Replace &matches with:": {
"values": [
"$1; $2",
"$1; $3",
"$1; $4",
"ICF",
"$1; $5",
"$1; $5"
]
}
}

View File

@ -25,4 +25,8 @@ Dance; Techno
Drum & Bass
Drum & Bass; Liquid
Mix
Mashup
Mashup
Ambient; Canto
Chillstep; Canto
Canto; Acoustic
Future House

View File

@ -23,4 +23,4 @@
"Show &row numbers": {
"value": true
}
}
}

View File

@ -4,13 +4,14 @@
"convert": false,
"order": [
"/home/janek/.local/share/puddletag/actions/standard.action",
"/home/janek/.local/share/puddletag/actions/caseconversion.action"
"/home/janek/.local/share/puddletag/actions/caseconversion.action",
"/home/janek/.local/share/puddletag/actions/Artist splitting.action"
]
},
"main": {
"lang": "auto",
"lastfolder": "/home/janek/data/music/Canto",
"maximized": false
"lastfolder": "/home/janek/data/music/Electronic/LauraBrehm",
"maximized": true
},
"playlist": {
"extinfo": 1,
@ -36,7 +37,7 @@
"fontsize": 10,
"rowsize": 43,
"sort_fields": [
"__dirpath"
"album"
],
"sort_reverse": false
},
@ -78,8 +79,10 @@
"Length",
"Year",
"Genre",
"BPM",
"Comment",
"Bitrate"
"Bitrate",
"Path"
],
"tags": [
"__dirpath",
@ -91,18 +94,18 @@
"__length",
"year",
"genre",
"bpm",
"comment",
"__bitrate"
"__bitrate",
"__path"
]
},
"editor": {
"patterns": [
"%artist% - %title%",
"%artist% - $num(%track%,2) - %title%",
"%artist% - %album% - $num(%track%,2) - %title%",
"%artist% - %title%",
"%artist% - %album%",
"%artist% - Track %track%",
"%artist% - %title%"
"%title%"
],
"index": 0
},
@ -110,6 +113,13 @@
"last_used": "autonumbering"
},
"actions": {
"checked": []
"checked": [
"Artist splitting"
]
},
"quick_actions": {
"checked": [
"Artist splitting"
]
}
}

View File

@ -3,7 +3,7 @@
# depends: mp mpc
# env: MUSIC
PLAYLISTS="$MUSIC/Playlists"
mpc clear
mpc -q clear
if test -z "$1"
then mp -q "$PLAYLISTS/focus.m3u"
else

View File

@ -13,11 +13,12 @@ then shift
path="$(test -e "$arg" && realpath "$arg" ||
( test -e "$MUSIC/$arg" && realpath "$MUSIC/$arg") ||
( test -e "$PLAYLISTS/$arg" && realpath "$PLAYLISTS/$arg") )"
test -n "$verbose" && echo "Scanning path '$path' $(test "$arg" != "$path" && echo "from '$arg' ")(MUSIC: '$MUSIC')" >&2
test -n "$verbose" && echo "Scanning path '$path' $(test "$arg" != "$path" && echo "from '$arg' ")(MUSIC: '$MUSIC', PWD: '$PWD')" >&2
test -n "$path" || continue
if file "$path" | grep -i ' playlist' || expr "$path" : ".*\.m3u8\?$" >/dev/null
then pushd "$(dirname "$path")" >/dev/null && cat "$path" | xargs --delim='\n' "$0" $verbose -r && popd >/dev/null
if { file "$path" | grep -i ' playlist' || expr "$path" : ".*\.m3u8\?$"; } >/dev/null
then pushd "$(dirname "$path")" >/dev/null && cat "$path" | sed '/#.*/D' | xargs --delim='\n' "$0" -r $verbose && popd >/dev/null
else
test -n "$verbose" && echo "Finding path '$path' $(test "$arg" != "$path" && echo "from '$arg' ")(MUSIC: '$MUSIC', PWD: '$PWD')" >&2
find "$path" -name "*.flac" -o -name "*.mp3" | sort | while read file
do case "$path" in
($MUSIC/*) echo "${file#$MUSIC/}";;
@ -28,7 +29,7 @@ then shift
else
test "$1" = "-q" && quiet=-q && shift
test -n "$(mpc playlist)" && next=-q
{ "$0" -r "$@" && mpc -q update --wait; } | #>/tmp/mp 2>&1
{ "$0" -r "$@" && mpc -q update --wait; } | #tee /tmp/mp 2>&1
xargs --delim='\n' mpc insert
mpc ${quiet:-$next} play
test -z "$next" || mpc $quiet next