Skip to content

Commit

Permalink
Merge pull request #73 from Bumbadawg/master
Browse files Browse the repository at this point in the history
2.10
  • Loading branch information
GuGuss authored Sep 24, 2018
2 parents 899c087 + d0155df commit 044b2e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARTE-Downloader
=================

Current version: **2.9**.
Current version: **2.10**.

CONTRIBUTORS
-----------
Expand Down
17 changes: 9 additions & 8 deletions arte-downloader.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @namespace GuGuss
// @description Download videos or get stream link of ARTE programs in the selected language.
// @include *//*.arte.tv/*
// @version 2.9
// @version 2.10
// @updateURL https://github.com/GuGuss/ARTE-7-Downloader/raw/master/arte-downloader.user.js
// @grant GM_xmlhttpRequest
// @icon http://www.arte.tv/favicon.ico
Expand All @@ -14,7 +14,8 @@
- old 360 flash player: http://future.arte.tv/fr/5-metres-une-plongee-360deg-sur-votre-ordinateur
*/
/* --- GLOBAL VARIABLES --- */
var scriptVersion = "2.8";

var scriptVersion = GM_info.script.version;
var player = [];
var nbVideoPlayers = 0;
var is_playlist = false;
Expand Down Expand Up @@ -457,10 +458,10 @@ function createButtonDownload(videoElementIndex, language) {

function createButtonMetadata(videoElementIndex) {
var title = getVideoName(videoElementIndex);
var subtitle = playerJson[videoElementIndex]['videoJsonPlayer']['VSU'];
var description_short = playerJson[videoElementIndex]['videoJsonPlayer']['V7T'];
var description = playerJson[videoElementIndex]['videoJsonPlayer']['VDE'];
var tags = playerJson[videoElementIndex]['videoJsonPlayer']['VTA'];
var subtitle = playerJson[videoElementIndex].videoJsonPlayer.VSU;
var description_short = playerJson[videoElementIndex].videoJsonPlayer.V7T;
var description = playerJson[videoElementIndex].videoJsonPlayer.VDE;
var tags = playerJson[videoElementIndex].videoJsonPlayer.VTA;

// Continue if at least one field is filled
if (title !== undefined || description_short !== undefined || subtitle !== undefined || description !== undefined || tags !== undefined) {
Expand Down Expand Up @@ -506,7 +507,7 @@ function createLanguageComboBox(videoElementIndex) {
};

// Fill with available languages
for (l in languages[videoElementIndex]) {
for (var l in languages[videoElementIndex]) {
if (languages[videoElementIndex][l] !== 0) {
languageComboBox.innerHTML += "<option value='" + l + "'>" + languages[videoElementIndex][l] + "</option>";
}
Expand Down Expand Up @@ -611,7 +612,7 @@ function decoratePlayer(videoElement, videoElementIndex) {
}
}
}
insertAfter(container, parent);
setTimeout(function(){ insertAfter(container, parent); }, 500);
}
}

Expand Down

0 comments on commit 044b2e1

Please sign in to comment.