summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-02-27 15:53:05 +0100
committerMarc Vertes <mvertes@free.fr>2025-02-27 15:53:05 +0100
commitb02cfe3629a12499f813bf09741bf872f810d9ac (patch)
tree8744acaef7c9a77c0626458df1ac460f2e063383 /bin
parent954d9d41fe441f4c8fe2654b1b8af263d20a7bed (diff)
add bin/sync-mp3
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fixnames8
-rwxr-xr-xbin/sync-mp32
2 files changed, 8 insertions, 2 deletions
diff --git a/bin/fixnames b/bin/fixnames
index dd1c5b3..d92f322 100755
--- a/bin/fixnames
+++ b/bin/fixnames
@@ -1,8 +1,12 @@
#!/usr/bin/env bash
-# Fix filenames in music library: no spaces or special chars.
+# Fix filenames in music library: no special chars.
-fixname() { echo "$1" | iconv -f utf8 -cs -t ascii//IGNORE; }
+fixname() {
+ echo "$1" |
+ iconv -f utf8 -cs -t ascii//IGNORE |
+ tr -d '?"'
+}
# 1: fix directories
for f in *; do
diff --git a/bin/sync-mp3 b/bin/sync-mp3
new file mode 100755
index 0000000..baab204
--- /dev/null
+++ b/bin/sync-mp3
@@ -0,0 +1,2 @@
+#!/bin/sh
+rsync -hvrltD --delete -@ 1 --stats --info=progress2 marc@192.168.1.197:Music/mp3/ .