2024-06-04 15:35:44 +00:00
|
|
|
# Version for i7-desktop
|
2024-07-16 20:39:28 +00:00
|
|
|
# .make_metadata.cfg 2024-07-08 13:55:23
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# A sanity check value in case an episode number given is too big
|
2024-06-04 15:35:44 +00:00
|
|
|
#
|
|
|
|
max_epno = 9000
|
2024-07-16 20:39:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# This is where the script will look for the audio files for upload (if there
|
|
|
|
# are other "assets" it finds them itself)
|
|
|
|
#
|
2024-06-04 15:35:44 +00:00
|
|
|
#uploads = "/var/IA/uploads" # on the VPS and marvin
|
|
|
|
uploads = "/home/cendjm/HPR/IA/uploads"
|
2024-07-16 20:39:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# How a "standard" audio file name is made up
|
|
|
|
#
|
2024-06-04 15:35:44 +00:00
|
|
|
filetemplate = "hpr%04d.%s"
|
2024-07-16 20:39:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# How to fill in the "missing bit" in relative URLs
|
|
|
|
#
|
2024-06-04 15:35:44 +00:00
|
|
|
baseURL = "https://hackerpublicradio.org/"
|
2024-07-16 20:39:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# *** OBSOLETE ***
|
|
|
|
# If we need to fetch the MP3 version of the audio, which we do for older
|
|
|
|
# shows, these are under the 'local' directory. The 'eps' files are actually
|
|
|
|
# redirections to the IA. This is not normally used for the weekly uploads.
|
|
|
|
#
|
2024-06-04 15:35:44 +00:00
|
|
|
#URLtemplate = "http://hackerpublicradio.org/eps/%s"
|
|
|
|
#URLtemplate = "https://hackerpublicradio.org/local/%s"
|
2024-07-16 20:39:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Printf/sprintf template for building an URL which points back to the current
|
|
|
|
# show on the HPR site.
|
|
|
|
#
|
2024-06-04 15:35:44 +00:00
|
|
|
sourceURLtemplate = "https://hackerpublicradio.org/eps/%s/index.html"
|
2024-07-16 20:39:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# If we are having to collect assets from the HPR server and upload them to
|
|
|
|
# the IA server we want the final product to be addressable according to the
|
|
|
|
# following URL template.
|
|
|
|
#
|
2024-06-04 15:35:44 +00:00
|
|
|
IAURLtemplate = "https://archive.org/download/%s/%s"
|
2024-07-16 20:39:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# We build a Bash script to perform the upload of files which aren't in the
|
|
|
|
# CSV generated by make_metadata. We used to use the plain 'ia upload' command
|
|
|
|
# but now we call a Bash function declared in the script which is slightly
|
|
|
|
# cleverer. We need to do this to get round the IA code's tendency to "derive"
|
|
|
|
# all audio, and in doing so strip any audio tags. We perform our own
|
|
|
|
# equivalent of "derive" *with* the tags and upload them telling the IA *not*
|
|
|
|
# to re-derive. Mostly it listens. There's also a whole thing about IA keeping
|
|
|
|
# history of deletions which we want to turn off otherwise our items become
|
|
|
|
# stuffed with unwanted garbage.
|
|
|
|
#
|
2024-06-04 15:35:44 +00:00
|
|
|
#iauploadtemplate = "ia upload %s %s --remote-name=%s"
|
|
|
|
iauploadtemplate = "Upload %s %s '%s' '%s'"
|
|
|
|
iauploadoptions = "--retries=5 --no-derive -H x-archive-keep-old-version:0"
|