Added comment to ard_download_button and reformatted.

This commit is contained in:
tastytea 2019-06-22 01:36:03 +02:00
parent 759b2023ca
commit a7c7411bb0
Signed by untrusted user: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 2 deletions

View File

@ -40,10 +40,11 @@ function main()
add_button(url);
}
function get_url()
function get_url() // Extract URL from HTML.
{
const html = document.getElementsByTagName('html')[0].innerHTML;
const re = new RegExp('"(https://pdvideosdaserste-a\.akamaihd\.net/[^"]+/320-[^"]+\.mp4)"');
const re = new RegExp(
'"(https://pdvideosdaserste-a\.akamaihd\.net/[^"]+/320-[^"]+\.mp4)"');
const result = re.exec(html);
if (result.length > 0)
{