diff --git a/src/backend/Scrappers/animez.js b/src/backend/Scrappers/animez.js index 48fcab1..ff8eec1 100644 --- a/src/backend/Scrappers/animez.js +++ b/src/backend/Scrappers/animez.js @@ -122,12 +122,12 @@ async function ExtractCardsData($, page = 1) { return searchResult; } -(async () => { - try { - // const data = await SearchAnime("one piece", 2); - const data = await AnimeInfo("one-piece-7096"); - console.log(data); - } catch (err) { - console.log(err); - } -})(); +// (async () => { +// try { +// // const data = await SearchAnime("one piece", 2); +// const data = await AnimeInfo("one-piece-7096"); +// console.log(data); +// } catch (err) { +// console.log(err); +// } +// })(); diff --git a/src/backend/Scrappers/anivibe.js b/src/backend/Scrappers/anivibe.js index 95e3f0f..546878c 100644 --- a/src/backend/Scrappers/anivibe.js +++ b/src/backend/Scrappers/anivibe.js @@ -14,7 +14,7 @@ async function fetchRecentEpisodes(page = 1) { const { data } = await axios.get(`${baseurl}/newest?page=${page}`); const $ = cheerio.load(data); - console.log($); + // console.log($); const results = []; diff --git a/src/backend/database.js b/src/backend/database.js index 959429f..cc55a72 100644 --- a/src/backend/database.js +++ b/src/backend/database.js @@ -40,10 +40,8 @@ async function continuousExecution() { for (let i = 0; i < AnimeQueue.length; i++) { try { - const currentTask = AnimeQueue[i]; + const currentTask = AnimeQueue[0]; if (!currentTask) { - AnimeQueue.splice(i, 1); - await SaveQueueData(AnimeQueue); break; } @@ -180,11 +178,7 @@ async function downloadEpisodeByQuality( episodeNumber ); - console.log(downloadedPaths); - console.log(config); - console.log(config?.mergeSubtitles); if (config?.mergeSubtitles === "on" || !config?.mergeSubtitles) { - console.log("merging!"); const outputFile = path.join( directoryName, `${episodeNumber}Ep.mp4` @@ -298,8 +292,6 @@ async function downloadSubtitle(subtitles, dir, episodeNumber) { }); downloadedPaths.push(subtitlePath); - - console.log(`downlaoded! lang : ${lang} : ${url}`); } return { downloadedPaths, episodeDir }; } @@ -329,7 +321,6 @@ async function mergeSubtitleWithVideo( const metadata = subtitleFiles .map((filePath, index) => { const lang = path.basename(filePath, path.extname(filePath)); - console.log(lang); return `-metadata:s:s:${index} language=${lang.split("_")}`; }) .join(" "); diff --git a/src/backend/utils/queue.js b/src/backend/utils/queue.js index 5fbff11..393eb16 100644 --- a/src/backend/utils/queue.js +++ b/src/backend/utils/queue.js @@ -27,14 +27,11 @@ async function loadQueue() { // remove anime from queue async function removeQueue(AnimeEpId) { - console.log(`id : ${AnimeEpId}`); - console.log(`before : ${AnimeQueue.toString()}`); const indexToRemove = AnimeQueue.findIndex((item) => item.epid === AnimeEpId); if (indexToRemove !== -1) { AnimeQueue.splice(indexToRemove, 1); await saveQueue(); } - console.log(`after : ${AnimeQueue.toString()}`); } // Remove With Index diff --git a/src/package-lock.json b/src/package-lock.json index 2201d0a..1a2e3e0 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -1,12 +1,12 @@ { "name": "animedownloader", - "version": "2.5.4", + "version": "2.7.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "animedownloader", - "version": "2.5.4", + "version": "2.7.2", "license": "ISC", "dependencies": { "axios": "^0.24.0", diff --git a/src/package.json b/src/package.json index 46e3537..915de5c 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "animedownloader", - "version": "2.7.1", + "version": "2.7.2", "description": "Download anime in batches & its fast :3", "main": "gui.js", "scripts": {