mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Don't crash on unknown youtube-dl date
This commit is contained in:
@@ -189,7 +189,7 @@ export async function buildYoutubeDLImport (options: {
|
|||||||
// Get video infos
|
// Get video infos
|
||||||
const youtubeDLInfo = await youtubeDL.getInfoForDownload({ userLanguage })
|
const youtubeDLInfo = await youtubeDL.getInfoForDownload({ userLanguage })
|
||||||
|
|
||||||
if (skipPublishedBeforeOrEq) {
|
if (skipPublishedBeforeOrEq && youtubeDLInfo.originallyPublishedAtWithoutTime) {
|
||||||
const onlyAfterWithoutTime = new Date(skipPublishedBeforeOrEq)
|
const onlyAfterWithoutTime = new Date(skipPublishedBeforeOrEq)
|
||||||
onlyAfterWithoutTime.setHours(0, 0, 0, 0)
|
onlyAfterWithoutTime.setHours(0, 0, 0, 0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user