From 163501233579a24fb6c0a9df72174f8f9431bd8a Mon Sep 17 00:00:00 2001 From: Daniel Haller Date: Wed, 1 May 2024 02:16:38 +0200 Subject: [PATCH] added run.electron and removed some console.logs --- components/Crunchyroll/ListSeasons.ts | 2 -- run.electron.bat | 2 ++ src/api/routes/adn/adn.service.ts | 2 -- src/api/routes/service/service.service.ts | 3 --- src/api/services/ffmpeg.ts | 3 --- src/api/services/subs.ts | 2 -- 6 files changed, 2 insertions(+), 12 deletions(-) create mode 100644 run.electron.bat diff --git a/components/Crunchyroll/ListSeasons.ts b/components/Crunchyroll/ListSeasons.ts index cbb2257..e783c74 100644 --- a/components/Crunchyroll/ListSeasons.ts +++ b/components/Crunchyroll/ListSeasons.ts @@ -8,8 +8,6 @@ export async function listSeasonCrunchy(q: string) { return } - console.log(q) - const { data, error } = await useFetch(`https://beta-api.crunchyroll.com/content/v2/cms/series/${q}/seasons`, { method: 'GET', headers: { diff --git a/run.electron.bat b/run.electron.bat new file mode 100644 index 0000000..cabcbad --- /dev/null +++ b/run.electron.bat @@ -0,0 +1,2 @@ +@echo off +wait-on http://localhost:3000 && electron ./.output/src/electron/background.js \ No newline at end of file diff --git a/src/api/routes/adn/adn.service.ts b/src/api/routes/adn/adn.service.ts index fc4e04a..d1c02cf 100644 --- a/src/api/routes/adn/adn.service.ts +++ b/src/api/routes/adn/adn.service.ts @@ -290,8 +290,6 @@ export async function parseSubs(url: string, secret: string) { var key = secret + '7fac1178830cfe0c' - console.log(key) - var parsedSubtitle = CryptoJS.enc.Base64.parse(data.substring(0, 24)) var sec = CryptoJS.enc.Hex.parse(key) var som = data.substring(24) diff --git a/src/api/routes/service/service.service.ts b/src/api/routes/service/service.service.ts index 150389c..099058a 100644 --- a/src/api/routes/service/service.service.ts +++ b/src/api/routes/service/service.service.ts @@ -167,7 +167,6 @@ async function checkPlaylists() { e.dataValues.dir, e.dataValues.format ) - console.log(e.dataValues.media) } } } @@ -323,8 +322,6 @@ export async function downloadCrunchyrollPlaylist( var playlist = await crunchyGetPlaylist(e) - console.log(playlist) - if (!playlist) { console.log('Playlist not found') return diff --git a/src/api/services/ffmpeg.ts b/src/api/services/ffmpeg.ts index c6affa7..d7de556 100644 --- a/src/api/services/ffmpeg.ts +++ b/src/api/services/ffmpeg.ts @@ -14,9 +14,6 @@ export function getFFMPEGPath() { const ffmpeg = process.env.FFMPEG_PATH const ffprobe = process.env.FFPROBE_PATH - console.log(ffmpeg) - console.log(ffprobe) - return { ffmpeg: ffmpeg, ffprobe: ffprobe } } else { const ffmpeg = path.join(ffmpegPath, 'ffmpeg.exe') diff --git a/src/api/services/subs.ts b/src/api/services/subs.ts index 5ee4bff..595558b 100644 --- a/src/api/services/subs.ts +++ b/src/api/services/subs.ts @@ -283,8 +283,6 @@ function convertToTimeFormat(time: number) { export async function ADNparseSub(raw: string, secret: string) { var key = secret + '7fac1178830cfe0c' - console.log(key) - var parsedSubtitle = CryptoJS.enc.Base64.parse(raw.substring(0, 24)) var sec = CryptoJS.enc.Hex.parse(key) var som = raw.substring(24)