no longer using greg
This commit is contained in:
parent
b53646bcdc
commit
7d255907fb
|
@ -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
|
|
|
@ -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
|
|
Loading…
Reference in New Issue