removed useless console logs

This commit is contained in:
stratuma 2024-06-21 20:58:27 +02:00
parent fdf76f1ef1
commit 5527afa2f3
2 changed files with 2 additions and 6 deletions

View File

@ -1101,7 +1101,7 @@ export async function downloadCrunchyrollPlaylist(
await deleteFolder(videoFolder) await deleteFolder(videoFolder)
await deleteFolder(subFolder) await deleteFolder(subFolder)
await deleteFolder(audioFolder) await deleteFolder(audioFolder)
// await deleteFolder(chapterFolder) await deleteFolder(chapterFolder)
return playlist return playlist
} }

View File

@ -20,7 +20,7 @@ async function createChapter(chapter: VideoMetadataSingle, format: string, name:
chapters.push('TIMEBASE=1/1000') chapters.push('TIMEBASE=1/1000')
chapters.push(`START=${formatTimeFFMPEG(chapter.end)}`) chapters.push(`START=${formatTimeFFMPEG(chapter.end)}`)
chapters.push(`END=${formatTimeFFMPEG(chapter.end)}`) chapters.push(`END=${formatTimeFFMPEG(chapter.end)}`)
chapters.push(`title=${name} End`) chapters.push(`title=Chapter`)
chapters.push(``) chapters.push(``)
} else { } else {
chapters.push('[CHAPTER]') chapters.push('[CHAPTER]')
@ -46,22 +46,18 @@ export async function createChapterFile(rawchapters: VideoMetadata, dir: string,
if (rawchapters.intro && rawchapters.intro.type && rawchapters.intro.start && rawchapters.intro.end) { if (rawchapters.intro && rawchapters.intro.type && rawchapters.intro.start && rawchapters.intro.end) {
chapters.push(...await createChapter(rawchapters.intro, format, 'Intro')); chapters.push(...await createChapter(rawchapters.intro, format, 'Intro'));
console.log(chapters)
} }
if (rawchapters.credits && rawchapters.credits.type && rawchapters.credits.start && rawchapters.credits.end) { if (rawchapters.credits && rawchapters.credits.type && rawchapters.credits.start && rawchapters.credits.end) {
chapters.push(...await createChapter(rawchapters.credits, format, 'Credits')); chapters.push(...await createChapter(rawchapters.credits, format, 'Credits'));
console.log(chapters)
} }
if (rawchapters.preview && rawchapters.preview.type && rawchapters.preview.start && rawchapters.preview.end) { if (rawchapters.preview && rawchapters.preview.type && rawchapters.preview.start && rawchapters.preview.end) {
chapters.push(...await createChapter(rawchapters.preview, format, 'Preview')); chapters.push(...await createChapter(rawchapters.preview, format, 'Preview'));
console.log(chapters)
} }
if (rawchapters.recap && rawchapters.recap.type && rawchapters.recap.start && rawchapters.recap.end) { if (rawchapters.recap && rawchapters.recap.type && rawchapters.recap.start && rawchapters.recap.end) {
chapters.push(...await createChapter(rawchapters.recap, format, 'Recap')); chapters.push(...await createChapter(rawchapters.recap, format, 'Recap'));
console.log(chapters)
} }
try { try {