X-Git-Url: https://code.delx.au/monosys/blobdiff_plain/d1060fadd92732c36a2b15302f329a472d119e52..e1348b675e6e58f17f9b874bebe70c5801bcd6ed:/scripts/youtube.cgi diff --git a/scripts/youtube.cgi b/scripts/youtube.cgi index b74b15d..39250f4 100755 --- a/scripts/youtube.cgi +++ b/scripts/youtube.cgi @@ -30,6 +30,7 @@ fmt_quality = [ def print_form(url="", msg=""): + script_url = "http://%s%s" % (os.environ["HTTP_HOST"], os.environ["REQUEST_URI"]) print "Content-Type: application/xhtml+xml\r\n\r\n" print """ @@ -55,13 +56,13 @@ def print_form(url="", msg=""):
-

Tip! Use this bookmarklet: YouTube Download +

Tip! Use this bookmarklet: YouTube Download to easily download videos. Right-click the link and add it to bookmarks, then when you're looking at a YouTube page select that bookmark from your browser's bookmarks menu to download the video straight away.

-""".replace("{0}", msg).replace("{1}", url) +""".replace("{0}", msg).replace("{1}", url).replace("{2}", script_url) def parse_url(url): f = urllib.urlopen(url)