diff --git a/greg/greg-dl.sh b/greg/greg-dl.sh deleted file mode 100755 index 8351010..0000000 --- a/greg/greg-dl.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -outfile=$1 -uri=$(perl -MURI::Escape -e 'print uri_escape shift, , q{^A-Za-z0-9\-._~/:}' -- "$2") -podname=$3 -epname=$4 -year=$(awk -F- '{ print $1 }' <<<"$5") - -if [ ! -f "$outfile" ]; then - # download the episode - curl -sSLo "$outfile" "$uri" - - # clear all tags from file - id3 -1 --delete "$outfile" - id3 -2 --delete "$outfile" - id3 -3 --delete "$outfile" - - # write podcast tags - id3 -2 --genre "Podcast" --year "$year" --album "Podcast: $podname" --artist "Podcast" --frame=TPE2 "Podcast" --title "$epname" "$outfile" -fi diff --git a/greg/greg.conf b/greg/greg.conf deleted file mode 100644 index 069c1fb..0000000 --- a/greg/greg.conf +++ /dev/null @@ -1,12 +0,0 @@ -[DEFAULT] -Data directory = /mnt/hiby/.greg -Download directory = /mnt/hiby/PODCASTS -Create subdirectory = yes -subdirectory_name = {filename_podcasttitle} -Tag = no -firstsync = all -mime = audio -date_format = %%Y-%%m-%%d -downloadhandler = /home/rudism/skynet/greg/greg-dl.sh {directory}/{date}_{filename_title}.mp3 {link} {podcasttitle} {title} {date} -ignoreenclosures = no -notype = no