mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
misc
This commit is contained in:
parent
b8241710bd
commit
6f75b02723
|
@ -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:
|
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
|
* [`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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// way more specific example --
|
// way more specific example --
|
||||||
// assumes all files dropped into the uploader have a youtube-id somewhere in the filename,
|
// 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
|
// assumes copyparty is behind nginx as /ytq is a standalone service which must be rproxied in place
|
||||||
|
|
||||||
|
|
|
@ -526,7 +526,9 @@ class Up2k(object):
|
||||||
if vpath:
|
if vpath:
|
||||||
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 = {}
|
reg = {}
|
||||||
drp = None
|
drp = None
|
||||||
|
|
Loading…
Reference in a new issue