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