diff --git a/index.html b/index.html index 6a54755..16eedf1 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - + diff --git a/main.js b/main.js index 29a7358..3189713 100644 --- a/main.js +++ b/main.js @@ -34,7 +34,7 @@ function createWindow () { scrollBounce: true }) - // and load the index.html of the app. + // and load the index.html of the src. mainWindow.loadURL(url.format({ pathname: path.join(__dirname, 'index.html'), protocol: 'file:', @@ -51,7 +51,7 @@ function createWindow () { // Emitted when the window is closed. mainWindow.on('closed', function () { // Dereference the window object, usually you would store windows - // in an array if your app supports multi windows, this is the time + // in an array if your src supports multi windows, this is the time // when you should delete the corresponding element. mainWindow = null }) @@ -84,7 +84,7 @@ exports.openDownloader = () => { downloaderWindow.on('closed', function () { // Dereference the window object, usually you would store windows - // in an array if your app supports multi windows, this is the time + // in an array if your src supports multi windows, this is the time // when you should delete the corresponding element. downloaderWindow = null }) @@ -133,12 +133,12 @@ app.on('window-all-closed', function () { }) app.on('activate', function () { - // On OS X it's common to re-create a window in the app when the + // On OS X it's common to re-create a window in the src when the // dock icon is clicked and there are no other windows open. if (mainWindow === null) { createWindow() } }) -// In this file you can include the rest of your app's specific main process +// In this file you can include the rest of your src's specific main process // code. You can also put them in separate files and require them here. diff --git a/package.json b/package.json index f52f0fb..1cb32f8 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "electron": "^1.4.15", "find-remove": "^1.0.0", "is-online": "^5.2.0", - "mal-scraper": "^1.0.9", + "mal-scraper": "latest", "malapi": "0.0.3", "node-nyaa-api": "latest", "parse-torrent": "^5.8.1", diff --git a/renderer.js b/renderer.js index 52d6b3c..de37437 100644 --- a/renderer.js +++ b/renderer.js @@ -109,7 +109,7 @@ function getLatest() { // Make the actual research try { - mal.fromName(tmp.join(' ')).then(result => { + mal.fromName(tmp.join(' ')).then( (result) => { releases.releases.push({ realTitle: animes[anime].title, title: getNameOnly(animes[anime].title), @@ -118,19 +118,19 @@ function getLatest() { picture: result.image, published: animes[anime].published }) - }).then(() => { + }).then( () => { if (releases.releases.length > 29) { releases.releases.sort(byProperty('published')) releases.releases.reverse() sorted = true } - }).then(() => { + }).then( () => { // 35 elements is too much, reducing to 18 if (sorted) while (releases.releases.length > 18) releases.releases.pop() - }).then(() => { - setTimeout(() => { + }).then( () => { + setTimeout( () => { if (loader.show) { loader.show = false releases.show = true @@ -169,7 +169,7 @@ function startTorrent(file_url, name) { function makeResearchOnMal(name) { - mal.fromName(name).then(anime => { + mal.fromName(name).then( (anime) => { info.infos.title = anime.title info.infos.japTitle = anime.alternativeTitles.japanese[0].slice(10) info.infos.image = anime.image @@ -192,7 +192,7 @@ function makeResearchOnMal(name) { } function getNews() { - let tmp = malScraper.getNewsNoDetails(() => { + let tmp = malScraper.getNewsNoDetails( () => { news.news = tmp }) } @@ -217,7 +217,7 @@ function getCurrentSeason() { } function fillSeason(seasonalInfo) { - seasonalInfo.info.forEach((elem) => { + seasonalInfo.info.forEach( (elem) => { switch (elem.type) { case 'TV': season.TVs.push(elem) @@ -303,7 +303,7 @@ let downloader = new Vue({ for (let article in articles) animes.push(articles[article]) - animes.forEach((elem) => { + animes.forEach( (elem) => { const url = elem.link const epNumber = parseInt(elem.title.split(' ').reverse()[1]) @@ -336,7 +336,7 @@ let downloader = new Vue({ for (let article in articles) animes.push(articles[article]) - animes.forEach((elem) => { + animes.forEach( (elem) => { const url = elem.link const epNumber = parseInt(elem.title.split(' ').reverse()[1]) const name = elem.title.split(' ').slice(0, -1).join(' ') @@ -574,7 +574,7 @@ let season = new Vue({ getGenres: function (genres) { let result = '' - genres.forEach((elem) => { + genres.forEach( (elem) => { result += `${elem}, ` }) diff --git a/app/Downloader/downloader.js b/src/Downloader/downloader.js similarity index 100% rename from app/Downloader/downloader.js rename to src/Downloader/downloader.js diff --git a/app/Downloader/index.html b/src/Downloader/index.html similarity index 100% rename from app/Downloader/index.html rename to src/Downloader/index.html diff --git a/app/Downloader/style.css b/src/Downloader/style.css similarity index 100% rename from app/Downloader/style.css rename to src/Downloader/style.css diff --git a/app/InformationPage/index.html b/src/InformationPage/index.html similarity index 100% rename from app/InformationPage/index.html rename to src/InformationPage/index.html diff --git a/app/InformationPage/informations.js b/src/InformationPage/informations.js similarity index 100% rename from app/InformationPage/informations.js rename to src/InformationPage/informations.js diff --git a/app/InformationPage/style.css b/src/InformationPage/style.css similarity index 100% rename from app/InformationPage/style.css rename to src/InformationPage/style.css diff --git a/app/style.css b/src/style.css similarity index 100% rename from app/style.css rename to src/style.css