more universally working wget
This commit is contained in:
@@ -22,7 +22,7 @@ try:
|
||||
except ImportError:
|
||||
MARKDOWN_AVAILABLE = False
|
||||
|
||||
VERSION = "20240626"
|
||||
VERSION = "20240819"
|
||||
IMAGE_EXTENSIONS = ["png", "gif", "jpg", "jpeg", "tif", "tiff"]
|
||||
AUDIO_EXTENSIONS = ["wav", "mp3", "ogg"]
|
||||
VIDEO_EXTENSIONS = ["mp4", "ogg", "webm"]
|
||||
@@ -343,13 +343,13 @@ def get_wget_command():
|
||||
|
||||
|
||||
def get_download_lines(files, recursive=False):
|
||||
s = "\n<!--\n"
|
||||
s = '\n<PRE style="display:none">\n'
|
||||
for f in files:
|
||||
s += "#FILE %s\n" % (urllib.parse.quote(f),)
|
||||
s += "#DL-CMD:\n#URL=[insert URL] && " + get_wget_command()
|
||||
if recursive:
|
||||
s += "x"
|
||||
s += "\n-->\n"
|
||||
s += "\n</PRE>\n"
|
||||
return s
|
||||
|
||||
|
||||
@@ -850,7 +850,7 @@ function alternate(table) {
|
||||
}
|
||||
}
|
||||
function show_wget_magic() {
|
||||
document.getElementById("wget_magic").innerHTML = 'URL="' + document.URL +'" && ' +
|
||||
document.getElementById("wget_magic").innerHTML = 'URL="' + encodeURI(decodeURI(document.URL)) +'" && ' +
|
||||
'"""
|
||||
+ get_wget_command()
|
||||
+ """';
|
||||
|
||||
Reference in New Issue
Block a user