From c569c0becad354fc3cbf57a54607ccfc7f51c8d2 Mon Sep 17 00:00:00 2001 From: Theenoro Date: Sun, 8 Oct 2017 23:21:55 +0200 Subject: [PATCH] 1.5.3 --- src/app/js/app.js | 55 +++-- src/app/view/init.html | 290 +++++++++++++------------ src/app/view/layout.html | 30 ++- src/controller/crawler/vivo.sx.js | 3 +- src/controller/crunchyroll.js | 10 +- src/controller/download.js | 236 ++++++++++---------- src/controller/install/linux/script.js | 92 ++++---- src/controller/player_onTop.js | 56 +++-- src/controller/tray.js | 35 ++- src/controller/watchr.js | 35 +-- src/controller/webLoader/router.js | 6 +- src/controller/windows.js/browser.js | 20 +- src/controller/youtube-dl.js | 245 +++++++++++---------- src/controller/youtube-dl.routine.js | 22 +- src/index.js | 34 --- 15 files changed, 611 insertions(+), 558 deletions(-) diff --git a/src/app/js/app.js b/src/app/js/app.js index e7e926d..72d1eb3 100644 --- a/src/app/js/app.js +++ b/src/app/js/app.js @@ -1,4 +1,4 @@ -const shared = require(global.__dirname+'/../js/shared'); +const shared = require(global.__dirname + '/../js/shared'); $(function() { const Config = require('electron-config'); const config = new Config(); @@ -8,11 +8,11 @@ $(function() { var download_progress = $('#download-progress'); var format = "mp3"; - if(typeof config.get('format') !== 'undefined'){ + if (typeof config.get('format') !== 'undefined') { format = config.get('format'); } var path = ""; - if(typeof config.get('path') !== 'undefined'){ + if (typeof config.get('path') !== 'undefined') { path = config.get('path'); } var out = $('#output'); @@ -23,11 +23,11 @@ $(function() { const helperx = require('./../../controller/webLoader/router'); var shell = require('electron').shell; - //open links externally by default - $(document).on('click', 'a[href^="http"]', function(event) { - event.preventDefault(); - shell.openExternal(this.href); - }); + //open links externally by default + $(document).on('click', 'a[href^="http"]', function(event) { + event.preventDefault(); + shell.openExternal(this.href); + }); const { dialog @@ -94,7 +94,7 @@ $(function() { }); } }) - $('body').delegate('#navigota li','click',function(){ + $('body').delegate('#navigota li', 'click', function() { console.log('TEST') $('#togmenu').click(); }) @@ -148,7 +148,17 @@ $(function() { var YT = JSON.parse(body); $( `
- Generic placeholder image +
+
+
` + YT.title + `
Author: ` + YT.author_name + ` @@ -170,9 +180,9 @@ $(function() { .get('https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=' + video_id + '&format=json', function(err, httpResponse, body) { var YT = JSON.parse(body); $( - `
+ `
-
-
-
-
+
+
+
+
- + +
+ diff --git a/src/app/view/layout.html b/src/app/view/layout.html index bccc6d7..e4009ed 100644 --- a/src/app/view/layout.html +++ b/src/app/view/layout.html @@ -8,19 +8,14 @@ module = undefined; } - Cyb3r Downloader - - @@ -144,17 +139,16 @@
@@ -194,9 +205,10 @@