Update the regexp for video.repubblica.it
[GM_direct_download_links.git] / direct_download_links.user.js
index 2c319e6..7c19b3c 100644 (file)
@@ -78,7 +78,7 @@ var supported_sites = [
   {
     locationRegexp: /^http:\/\/video\.repubblica\.it\/.*$/,
     urlContainerXPath: '//div[@id="contA"]',
-    urlRegexp: /'pcUrl', '((http|mms):\/\/[^']*)'/,
+    urlRegexp: /[^\/]addParam\('format', '[^']*', '((http|mms):\/\/[^']*)'/,
     linkDestXPath: '//div[@id="contA"]',
   },
   {
@@ -146,7 +146,7 @@ function getElementByXPath(query, root) {
  * @return: null on error, true on success
  */
 function direct_download_link_add(pageURL, site) {
-  site.pageURL = pageURL
+  site.pageURL = pageURL;
   var element = getElementByXPath(site.urlContainerXPath);
   if (!element) {
     DDL_log('DirectDL (' + site.pageURL  + '): Cannot find the element ' + site.urlContainerXPath + ' containing the URL.');