Updates since 2024-06-15
Database/query2tt2: comment and documentation updates; use of Perl's try/catch. InternetArchive/.make_metadata.cfg: added comments for readability InternetArchive/make_metadata: bug fix needed now that all shows on the HPR server have a directory with assets under it. InternetArchive/repair_assets: new Bash script in development. Collects assets from the IA and uploads them to a new directory on the HPR server. Will run 'fix_asset_links' (to repair asset links for their new directories) once it is ready. InternetArchive/repair_item: Bash script which was originally written to run on 'borg' and upload files to a new IA item when the uploads timed out. Now enhanced to upload missing files recovered from the HPR backup disk, such as transcripts.
This commit is contained in:
@@ -1,16 +1,62 @@
|
||||
# Version for i7-desktop
|
||||
# .make_metadata.cfg 2023-07-06 11:54:49
|
||||
# .make_metadata.cfg 2024-07-08 13:55:23
|
||||
#
|
||||
|
||||
#
|
||||
# A sanity check value in case an episode number given is too big
|
||||
#
|
||||
max_epno = 9000
|
||||
|
||||
#
|
||||
# This is where the script will look for the audio files for upload (if there
|
||||
# are other "assets" it finds them itself)
|
||||
#
|
||||
#uploads = "/var/IA/uploads" # on the VPS and marvin
|
||||
uploads = "/home/cendjm/HPR/IA/uploads"
|
||||
|
||||
#
|
||||
# How a "standard" audio file name is made up
|
||||
#
|
||||
filetemplate = "hpr%04d.%s"
|
||||
|
||||
#
|
||||
# How to fill in the "missing bit" in relative URLs
|
||||
#
|
||||
baseURL = "https://hackerpublicradio.org/"
|
||||
|
||||
#
|
||||
# *** 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.
|
||||
#
|
||||
#URLtemplate = "http://hackerpublicradio.org/eps/%s"
|
||||
#URLtemplate = "https://hackerpublicradio.org/local/%s"
|
||||
|
||||
#
|
||||
# Printf/sprintf template for building an URL which points back to the current
|
||||
# show on the HPR site.
|
||||
#
|
||||
sourceURLtemplate = "https://hackerpublicradio.org/eps/%s/index.html"
|
||||
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
IAURLtemplate = "https://archive.org/download/%s/%s"
|
||||
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
#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"
|
||||
|
||||
|
Reference in New Issue
Block a user