This commit is contained in:
ed 2022-07-12 03:16:30 +02:00
parent b8241710bd
commit 6f75b02723
3 changed files with 6 additions and 2 deletions

View file

@ -15,6 +15,8 @@ save one of these as `.epilogue.html` inside a folder to customize it:
point `--js-browser` to one of these by URL:
* [`minimal-up2k.js`](minimal-up2k.js) is similar to the above `minimal-up2k.html` except it applies globally to all write-only folders
* [`up2k-hooks.js`](up2k-hooks.js) lets you specify a ruleset for files to skip uploading
* [`up2k-hook-ytid.js`](up2k-hook-ytid.js) is a more specific example checking youtube-IDs against some API

View file

@ -1,6 +1,6 @@
// way more specific example --
// assumes all files dropped into the uploader have a youtube-id somewhere in the filename,
// locates the youtube-ids and passes them to an API which returns a list of IDS which should be uploaded
// locates the youtube-ids and passes them to an API which returns a list of IDs which should be uploaded
//
// assumes copyparty is behind nginx as /ytq is a standalone service which must be rproxied in place

View file

@ -526,7 +526,9 @@ class Up2k(object):
if vpath:
vpath += "/"
self.log("/{} {}".format(vpath, " ".join(sorted(a))), "35")
zs = " ".join(sorted(a))
zs = zs.replace("30mre.compile(", "30m(") # nohash
self.log("/{} {}".format(vpath, zs), "35")
reg = {}
drp = None