added run.electron and removed some console.logs

This commit is contained in:
Daniel Haller 2024-05-01 02:16:38 +02:00
parent 7e660164b8
commit 1635012335
6 changed files with 2 additions and 12 deletions

View File

@ -8,8 +8,6 @@ export async function listSeasonCrunchy(q: string) {
return
}
console.log(q)
const { data, error } = await useFetch<CrunchySeasonsFetch>(`https://beta-api.crunchyroll.com/content/v2/cms/series/${q}/seasons`, {
method: 'GET',
headers: {

2
run.electron.bat Normal file
View File

@ -0,0 +1,2 @@
@echo off
wait-on http://localhost:3000 && electron ./.output/src/electron/background.js

View File

@ -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)

View File

@ -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

View File

@ -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')

View File

@ -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)