From c32a6f0e13180da847781a8441e367099ee76fee Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ospite@studenti.unina.it>
Date: Thu, 22 Nov 2012 12:17:58 +0100
Subject: [PATCH] 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.
---
 direct_download_links.user.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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"]',
-- 
2.1.4