// direct_download_links - Add direct download links
-// version 0.3
-// 2011-12-23
-// Copyright (C) 2011 Antonio Ospite <ospite@studenti.unina.it>
+// version 0.4
+// 2012-02-12
+// Copyright (C) 2011,2012 Antonio Ospite <ospite@studenti.unina.it>
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
locationRegexp: /^http:\/\/www\.kataweb\.it\/tvzap\/.*$/,
urlContainerXPath: '//div[@id="tvzap_video"]',
urlRegexp: /'pcUrl', '((http|mms):\/\/[^']*)'/,
- linkDestXPath: '//div[@id="playerCont"]',
+ linkDestXPath: '//div[@id="tvzap_video"]',
},
{
locationRegexp: /^http:\/\/www\.rai\.tv\/.*$/,
* @return: null on error, true on success
*/
function direct_download_link_add(pageURL, site) {
+ site.pageURL = pageURL
var element = getElementByXPath(site.urlContainerXPath);
if (!element) {
DDL_log('DirectDL (' + site.pageURL + '): Cannot find the element ' + site.urlContainerXPath + ' containing the URL.');