Skip to content

Commit

Permalink
Fix the JSON URL selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
GuGuss committed Sep 9, 2014
1 parent f233fed commit 0861c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arte-downloader.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// ==/UserScript==

// Set this to 1 to enable console logs.
var debug_mode = 0;
var debug_mode = 1;
if(!debug_mode) {
console.log('Debug mode disabled');
console.log = function() {};
Expand Down Expand Up @@ -80,7 +80,7 @@ function triggerOnClick(quality){
function getJsonUrl() {

// Run the XPath query using the XPath identifier of the player.
result = document.evaluate("//*[@arte_vp_autostart=1]", document.documentElement, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
result = document.evaluate("/html/body/div[4]/section[2]/div/div/div/div/div[2]", document.documentElement, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);

// Get the value of the "arte_vp_url" attribute which contains the player URL.
playerUrl = result.snapshotItem(0).getAttribute("arte_vp_url");
Expand Down

0 comments on commit 0861c7b

Please sign in to comment.