Merge branch 'main' into export
This commit is contained in:
commit
57afff3cf0
4 files changed
+72
-1
No files matched your search
@@ -1,3 +1,5 @@
|
|||||||
|
**/.DS_Store
|
||||||
|
|
||||||
*.sql
|
*.sql
|
||||||
*.sql.gz
|
*.sql.gz
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
@@ -16,3 +18,5 @@ surf.sublime-workspace
|
|||||||
**/target
|
**/target
|
||||||
maple.sublime-workspace
|
maple.sublime-workspace
|
||||||
*.secret.yaml
|
*.secret.yaml
|
||||||
|
|
||||||
|
etc/sldl-macos.yaml
|
||||||
Executable
+42
@@ -0,0 +1,42 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
set -ue
|
||||||
|
|
||||||
|
maple="$HOME/maple"
|
||||||
|
data="$HOME/maple/data"
|
||||||
|
metadata="$data/_metadata"
|
||||||
|
etc="$maple/etc"
|
||||||
|
sldl_conf="$etc/sldl-macos.conf"
|
||||||
|
|
||||||
|
directories() {
|
||||||
|
mkdir -p $data
|
||||||
|
mkdir -p $metadata
|
||||||
|
mkdir -p $etc
|
||||||
|
}
|
||||||
|
|
||||||
|
configure() {
|
||||||
|
envsubst < $etc/sldl.tpl.conf > $sldl_conf
|
||||||
|
|
||||||
|
echo "--------------------------------------------------------------"
|
||||||
|
echo "configured sldl"
|
||||||
|
cat $sldl_conf
|
||||||
|
echo "--------------------------------------------------------------"
|
||||||
|
}
|
||||||
|
|
||||||
|
s5cmd_completion() {
|
||||||
|
s5cmd --install-completion >> $HOME/.bashrc
|
||||||
|
}
|
||||||
|
|
||||||
|
ok() {
|
||||||
|
echo "ok"
|
||||||
|
env
|
||||||
|
}
|
||||||
|
|
||||||
|
main() {
|
||||||
|
directories
|
||||||
|
configure
|
||||||
|
s5cmd_completion
|
||||||
|
ok
|
||||||
|
}
|
||||||
|
|
||||||
|
main
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
path = "~/maple/data"
|
||||||
|
index-path = "~/maple/data/_metadata/index.sldl.csv"
|
||||||
|
username = "ntwl"
|
||||||
|
password = "ninety nonsense nights"
|
||||||
|
|
||||||
|
name-format = "{artist(/)album(/)track( )title|(_missing_tags/)slsk-foldername(/)slsk-filename}"
|
||||||
|
write-playlist = true
|
||||||
|
|
||||||
|
pref-format = "mp3"
|
||||||
|
pref-min-bitrate = 200
|
||||||
|
pref-max-bitrate = 2500
|
||||||
|
|
||||||
|
strict-conditions = true
|
||||||
|
fast-search = true
|
||||||
|
interactive = false
|
||||||
|
no-progress = true
|
||||||
|
concurrent-downloads = 4
|
||||||
@@ -24,7 +24,15 @@ exec:
|
|||||||
dl trg:
|
dl trg:
|
||||||
docker compose -f compose.yaml run \
|
docker compose -f compose.yaml run \
|
||||||
--remove-orphans \
|
--remove-orphans \
|
||||||
maple -- sldl {{trg}}
|
|
||||||
|
|
||||||
link plist dir:
|
link plist dir:
|
||||||
python3 maple-py/link.py plist dir
|
python3 maple-py/link.py plist dir
|
||||||
|
|
||||||
|
sync args:
|
||||||
|
s5cmd {{args}}
|
||||||
|
|
||||||
|
maple-setup:
|
||||||
|
bash ./etc/maple_setup.sh
|
||||||
|
|
||||||
|
maple trg:
|
||||||
|
sldl -c ./etc/sldl-macos.yaml {{trg}}
|
||||||
Reference in new issue
Block a user