summaryrefslogtreecommitdiff
path: root/internetarchive.sh
blob: d9870954cc3d182b5578a962ed41175eb91838ff (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

cd $1
dir=$(basename $1)
date=$(echo $dir|cut -f1 -d '_')
album=$(echo $dir|cut -f2- -d '_')
title=$(echo $album| sed 's/_/ /g')
url=https://pdp8.info/music.html#$date
description="$(sed 's/^$/<br>/' README) <p> original release: <a href="$url">$url</a> "
description=$(echo $description) # remove newlines
ia upload pdp8_$album *flac cover.jpeg --metadata="title:$title" --metadata="mediatype:audio" --metadata="licenseurl:http://creativecommons.org/licenses/by-sa/4.0/" --metadata="date:$date" --metadata="description:$description" --metadata="artist:pdp8@pdp8.info" --metadata="album:$album" --metadata="creator:pdp8@pdp8.info" --metadata="genre:electronic,techno"