more universally working wget

This commit is contained in:
q
2024-08-19 16:05:10 +03:00
parent 00b0f07f51
commit 523a61ee80
4 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@@ -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()
+ """';

Binary file not shown.

Binary file not shown.