Add support for telecinco.es
authorAntonio Ospite <ospite@studenti.unina.it>
Sat, 1 Sep 2012 10:51:21 +0000 (12:51 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Sat, 1 Sep 2012 10:51:21 +0000 (12:51 +0200)
You still need to connect from Spain to download the actual video tho.
I had success using a HTTP proxy located in Spain.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
direct_download_links.user.js

index 11932f8..e79d916 100644 (file)
@@ -29,6 +29,7 @@
 // @include        http://www.kataweb.it/tvzap/*
 // @include        http://www.rai.tv/*
 // @include        http://soundcloud.com/*
+// @include        http://www.telecinco.es/*
 // ==/UserScript==
 //
 
@@ -119,6 +120,12 @@ var supported_sites = [
     urlRegexp: /"streamUrl":"([^"]*)"/,
     linkDestXPath: '//div[@id="main-content-inner"]',
   },
+  {
+    locationRegexp: /^http:\/\/www\.telecinco.es\/.*$/,
+    urlContainerXPath: '//video[@class="video-js"]',
+    urlRegexp: /src="([^"]*)"/,
+    linkDestXPath: '//div[@class="pg-bd"]',
+  },
 ];
 
 /* Apply different rules to different sites */