From: Antonio Ospite Date: Thu, 22 Nov 2012 11:17:58 +0000 (+0100) Subject: Fix urlRegexp for some rai.tv links X-Git-Url: https://git.ao2.it/GM_direct_download_links.git/commitdiff_plain/c32a6f0e13180da847781a8441e367099ee76fee?ds=sidebyside Fix urlRegexp for some rai.tv links The mediaUri field can be the last one of the comma separated list into the attribute value, so match also the double quotes as the end of the URL. --- diff --git a/direct_download_links.user.js b/direct_download_links.user.js index 5020163..d1c1e52 100644 --- a/direct_download_links.user.js +++ b/direct_download_links.user.js @@ -111,7 +111,7 @@ var supported_sites = [ }; }, urlContainerXPath: '//div[@id="silverlightControlHost" or @id="SilverlightPlayer"]', - urlRegexp: /mediaUri=(http:\/\/[^,]*)/, + urlRegexp: /mediaUri=(http:\/\/[^,"]*)/, onEvent: { evt: 'DOMNodeInserted', targetElement: 'object' }, processURL: _rai_get_actual_url, linkDestXPath: '//div[@id="silverlightControlHost" or @id="SilverlightPlayer"]',