Fix urlRegexp for some rai.tv links
authorAntonio Ospite <ospite@studenti.unina.it>
Thu, 22 Nov 2012 11:17:58 +0000 (12:17 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Thu, 22 Nov 2012 11:17:58 +0000 (12:17 +0100)
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.

direct_download_links.user.js

index 5020163..d1c1e52 100644 (file)
@@ -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"]',