config: music playing configuration
This commit is contained in:
parent
7127ffe29d
commit
546a01b43e
|
@ -1,7 +1,27 @@
|
||||||
{
|
{
|
||||||
"w&ith:": {
|
"w&ith:": {
|
||||||
"values": [
|
"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": {
|
"&Output": {
|
||||||
|
@ -48,7 +68,16 @@
|
||||||
"feint",
|
"feint",
|
||||||
"hi",
|
"hi",
|
||||||
"dnb",
|
"dnb",
|
||||||
""
|
"weare",
|
||||||
|
"weareelev",
|
||||||
|
"eleva",
|
||||||
|
"rival",
|
||||||
|
"veela",
|
||||||
|
"chillstep",
|
||||||
|
"fijiwiji",
|
||||||
|
"Richards",
|
||||||
|
"I Remember You",
|
||||||
|
"I Remember You"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"&Pattern": {
|
"&Pattern": {
|
||||||
|
@ -63,7 +92,29 @@
|
||||||
},
|
},
|
||||||
"&Replace": {
|
"&Replace": {
|
||||||
"values": [
|
"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": {
|
"&Format string": {
|
||||||
|
@ -77,5 +128,30 @@
|
||||||
"https://soundcloud.com/icf-berlin-fhain/%year%-fh",
|
"https://soundcloud.com/icf-berlin-fhain/%year%-fh",
|
||||||
"https://soundcloud.com/icf-berlin-fhain/%date%-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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -25,4 +25,8 @@ Dance; Techno
|
||||||
Drum & Bass
|
Drum & Bass
|
||||||
Drum & Bass; Liquid
|
Drum & Bass; Liquid
|
||||||
Mix
|
Mix
|
||||||
Mashup
|
Mashup
|
||||||
|
Ambient; Canto
|
||||||
|
Chillstep; Canto
|
||||||
|
Canto; Acoustic
|
||||||
|
Future House
|
|
@ -23,4 +23,4 @@
|
||||||
"Show &row numbers": {
|
"Show &row numbers": {
|
||||||
"value": true
|
"value": true
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -4,13 +4,14 @@
|
||||||
"convert": false,
|
"convert": false,
|
||||||
"order": [
|
"order": [
|
||||||
"/home/janek/.local/share/puddletag/actions/standard.action",
|
"/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": {
|
"main": {
|
||||||
"lang": "auto",
|
"lang": "auto",
|
||||||
"lastfolder": "/home/janek/data/music/Canto",
|
"lastfolder": "/home/janek/data/music/Electronic/LauraBrehm",
|
||||||
"maximized": false
|
"maximized": true
|
||||||
},
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"extinfo": 1,
|
"extinfo": 1,
|
||||||
|
@ -36,7 +37,7 @@
|
||||||
"fontsize": 10,
|
"fontsize": 10,
|
||||||
"rowsize": 43,
|
"rowsize": 43,
|
||||||
"sort_fields": [
|
"sort_fields": [
|
||||||
"__dirpath"
|
"album"
|
||||||
],
|
],
|
||||||
"sort_reverse": false
|
"sort_reverse": false
|
||||||
},
|
},
|
||||||
|
@ -78,8 +79,10 @@
|
||||||
"Length",
|
"Length",
|
||||||
"Year",
|
"Year",
|
||||||
"Genre",
|
"Genre",
|
||||||
|
"BPM",
|
||||||
"Comment",
|
"Comment",
|
||||||
"Bitrate"
|
"Bitrate",
|
||||||
|
"Path"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"__dirpath",
|
"__dirpath",
|
||||||
|
@ -91,18 +94,18 @@
|
||||||
"__length",
|
"__length",
|
||||||
"year",
|
"year",
|
||||||
"genre",
|
"genre",
|
||||||
|
"bpm",
|
||||||
"comment",
|
"comment",
|
||||||
"__bitrate"
|
"__bitrate",
|
||||||
|
"__path"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"editor": {
|
"editor": {
|
||||||
"patterns": [
|
"patterns": [
|
||||||
|
"%artist% - %title%",
|
||||||
"%artist% - $num(%track%,2) - %title%",
|
"%artist% - $num(%track%,2) - %title%",
|
||||||
"%artist% - %album% - $num(%track%,2) - %title%",
|
"%artist% - %album% - $num(%track%,2) - %title%",
|
||||||
"%artist% - %title%",
|
"%title%"
|
||||||
"%artist% - %album%",
|
|
||||||
"%artist% - Track %track%",
|
|
||||||
"%artist% - %title%"
|
|
||||||
],
|
],
|
||||||
"index": 0
|
"index": 0
|
||||||
},
|
},
|
||||||
|
@ -110,6 +113,13 @@
|
||||||
"last_used": "autonumbering"
|
"last_used": "autonumbering"
|
||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
"checked": []
|
"checked": [
|
||||||
|
"Artist splitting"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"quick_actions": {
|
||||||
|
"checked": [
|
||||||
|
"Artist splitting"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -3,7 +3,7 @@
|
||||||
# depends: mp mpc
|
# depends: mp mpc
|
||||||
# env: MUSIC
|
# env: MUSIC
|
||||||
PLAYLISTS="$MUSIC/Playlists"
|
PLAYLISTS="$MUSIC/Playlists"
|
||||||
mpc clear
|
mpc -q clear
|
||||||
if test -z "$1"
|
if test -z "$1"
|
||||||
then mp -q "$PLAYLISTS/focus.m3u"
|
then mp -q "$PLAYLISTS/focus.m3u"
|
||||||
else
|
else
|
||||||
|
|
|
@ -13,11 +13,12 @@ then shift
|
||||||
path="$(test -e "$arg" && realpath "$arg" ||
|
path="$(test -e "$arg" && realpath "$arg" ||
|
||||||
( test -e "$MUSIC/$arg" && realpath "$MUSIC/$arg") ||
|
( test -e "$MUSIC/$arg" && realpath "$MUSIC/$arg") ||
|
||||||
( test -e "$PLAYLISTS/$arg" && realpath "$PLAYLISTS/$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
|
test -n "$path" || continue
|
||||||
if file "$path" | grep -i ' playlist' || expr "$path" : ".*\.m3u8\?$" >/dev/null
|
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
|
then pushd "$(dirname "$path")" >/dev/null && cat "$path" | sed '/#.*/D' | xargs --delim='\n' "$0" -r $verbose && popd >/dev/null
|
||||||
else
|
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
|
find "$path" -name "*.flac" -o -name "*.mp3" | sort | while read file
|
||||||
do case "$path" in
|
do case "$path" in
|
||||||
($MUSIC/*) echo "${file#$MUSIC/}";;
|
($MUSIC/*) echo "${file#$MUSIC/}";;
|
||||||
|
@ -28,7 +29,7 @@ then shift
|
||||||
else
|
else
|
||||||
test "$1" = "-q" && quiet=-q && shift
|
test "$1" = "-q" && quiet=-q && shift
|
||||||
test -n "$(mpc playlist)" && next=-q
|
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
|
xargs --delim='\n' mpc insert
|
||||||
mpc ${quiet:-$next} play
|
mpc ${quiet:-$next} play
|
||||||
test -z "$next" || mpc $quiet next
|
test -z "$next" || mpc $quiet next
|
||||||
|
|
Loading…
Reference in New Issue