From b02cfe3629a12499f813bf09741bf872f810d9ac Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 27 Feb 2025 15:53:05 +0100 Subject: add bin/sync-mp3 --- bin/fixnames | 8 ++++++-- bin/sync-mp3 | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 bin/sync-mp3 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/ . -- cgit v1.2.3