config/music: ease restructuring
This commit is contained in:
parent
66e8f203c4
commit
6723119ef3
|
@ -6,6 +6,7 @@
|
||||||
"/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",
|
"/home/janek/.local/share/puddletag/actions/Artist splitting.action",
|
||||||
|
"/home/janek/.local/share/puddletag/actions/Genre Splitting.action",
|
||||||
"/home/janek/.local/share/puddletag/actions/Swap artists.action",
|
"/home/janek/.local/share/puddletag/actions/Swap artists.action",
|
||||||
"/home/janek/.local/share/puddletag/actions/Genre House.action",
|
"/home/janek/.local/share/puddletag/actions/Genre House.action",
|
||||||
"/home/janek/.local/share/puddletag/actions/Genre Acoustic.action",
|
"/home/janek/.local/share/puddletag/actions/Genre Acoustic.action",
|
||||||
|
@ -16,7 +17,7 @@
|
||||||
},
|
},
|
||||||
"main": {
|
"main": {
|
||||||
"lang": "auto",
|
"lang": "auto",
|
||||||
"lastfolder": "/home/janek/data/4-media/music",
|
"lastfolder": "/home/janek/data/4-media/music/Electronic/Feint",
|
||||||
"maximized": false
|
"maximized": false
|
||||||
},
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
|
@ -43,7 +44,7 @@
|
||||||
"fontsize": 10,
|
"fontsize": 10,
|
||||||
"rowsize": 43,
|
"rowsize": 43,
|
||||||
"sort_fields": [
|
"sort_fields": [
|
||||||
"genre"
|
"title"
|
||||||
],
|
],
|
||||||
"sort_reverse": false
|
"sort_reverse": false
|
||||||
},
|
},
|
||||||
|
@ -121,15 +122,16 @@
|
||||||
"%artist% - %track% - %title%",
|
"%artist% - %track% - %title%",
|
||||||
"%artist% - %album% - %track% - %title%"
|
"%artist% - %album% - %track% - %title%"
|
||||||
],
|
],
|
||||||
"index": 0
|
"index": 1
|
||||||
},
|
},
|
||||||
"functions": {
|
"functions": {
|
||||||
"last_used": "regex"
|
"last_used": "remove_dupes"
|
||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
"checked": [
|
"checked": [
|
||||||
"Standard",
|
"Standard",
|
||||||
"Artist splitting"
|
"Artist splitting",
|
||||||
|
"Genre Splitting"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"quick_actions": {
|
"quick_actions": {
|
||||||
|
@ -137,4 +139,4 @@
|
||||||
"Artist splitting"
|
"Artist splitting"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -68,7 +68,7 @@ formatsongs() {
|
||||||
(
|
(
|
||||||
find -maxdepth 1 -type d | formatin
|
find -maxdepth 1 -type d | formatin
|
||||||
find "$@" "$PWD" -type d | while read d;
|
find "$@" "$PWD" -type d | while read d;
|
||||||
do builtin cd $d && findsongs | formatin
|
do builtin cd "$d" && findsongs | formatin
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
# fd --no-ignore-vcs --type f --extension opus --exec opusdec --quiet "{}" "{.}.wav" \; ".*" "$@"
|
# fd --no-ignore-vcs --type f --extension opus --exec opusdec --quiet "{}" "{.}.wav" \; ".*" "$@"
|
||||||
|
@ -91,8 +91,9 @@ formatin() {
|
||||||
formatsong() {
|
formatsong() {
|
||||||
echo "$1" | sed -e 's/\b\(ft\|Ft\|Feat\|featuring\)\([ .]\)/feat\2/;
|
echo "$1" | sed -e 's/\b\(ft\|Ft\|Feat\|featuring\)\([ .]\)/feat\2/;
|
||||||
s/\bfeat /feat. /;
|
s/\bfeat /feat. /;
|
||||||
|
s/)(/) (/g;
|
||||||
s/ [[(]\(Free Download\|Original Mix\|Original\|Full Stream\|NCS Release\)[])]//i;
|
s/ [[(]\(Free Download\|Original Mix\|Original\|Full Stream\|NCS Release\)[])]//i;
|
||||||
s/ (\(Acoustic\|Live\))/ [\1]/i;
|
s/ (\(Acoustic\|Live|.* Remix\))/ [\1]/i;
|
||||||
s/ \[\(feat.*\)\]/ (\1)/i;
|
s/ \[\(feat.*\)\]/ (\1)/i;
|
||||||
s/^\([A-z]\+\) The \([^-]\+\)$/\1, the \2/g;
|
s/^\([A-z]\+\) The \([^-]\+\)$/\1, the \2/g;
|
||||||
s/ \(\..\{2,4\}\)$/\1/;
|
s/ \(\..\{2,4\}\)$/\1/;
|
||||||
|
|
|
@ -61,7 +61,7 @@ find $HOME -maxdepth 1 -type l -exec file {} + |
|
||||||
sed 's/.* //' | xargs -r mkdir -p
|
sed 's/.* //' | xargs -r mkdir -p
|
||||||
|
|
||||||
link python /usr/bin/python3
|
link python /usr/bin/python3
|
||||||
# TODO don't do these prematurely
|
# TODO don't link these prematurely, might lead to installation conflicts
|
||||||
link fdfind /usr/bin/fd
|
link fdfind /usr/bin/fd
|
||||||
link batcat /usr/bin/bat
|
link batcat /usr/bin/bat
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue