Don't crash on unknown youtube-dl date

This commit is contained in:
Chocobozzz
2026-07-13 14:01:17 +02:00
parent 69371d96aa
commit c9a2f652fa
+1 -1
View File
@@ -189,7 +189,7 @@ export async function buildYoutubeDLImport (options: {
// Get video infos
const youtubeDLInfo = await youtubeDL.getInfoForDownload({ userLanguage })
if (skipPublishedBeforeOrEq) {
if (skipPublishedBeforeOrEq && youtubeDLInfo.originallyPublishedAtWithoutTime) {
const onlyAfterWithoutTime = new Date(skipPublishedBeforeOrEq)
onlyAfterWithoutTime.setHours(0, 0, 0, 0)