aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/youtube-dl
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-16 09:37:07 +0200
committerChocobozzz <me@florianbigard.com>2022-09-16 09:37:07 +0200
commit3204f4d17dec79413a94eae8a71b72e0c7ec7ba5 (patch)
treeb6f5a2c3d6e55676972e671fb0ef429a7bdd975b /server/helpers/youtube-dl
parentc95fbe65530191d7be22341815ecb743c139396f (diff)
downloadPeerTube-3204f4d17dec79413a94eae8a71b72e0c7ec7ba5.tar.gz
PeerTube-3204f4d17dec79413a94eae8a71b72e0c7ec7ba5.tar.zst
PeerTube-3204f4d17dec79413a94eae8a71b72e0c7ec7ba5.zip
Fix sync import of latest videos
Diffstat (limited to 'server/helpers/youtube-dl')
-rw-r--r--server/helpers/youtube-dl/youtube-dl-info-builder.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/youtube-dl/youtube-dl-info-builder.ts b/server/helpers/youtube-dl/youtube-dl-info-builder.ts
index 303e4051f..a74904e43 100644
--- a/server/helpers/youtube-dl/youtube-dl-info-builder.ts
+++ b/server/helpers/youtube-dl/youtube-dl-info-builder.ts
@@ -12,7 +12,7 @@ type YoutubeDLInfo = {
12 tags?: string[] 12 tags?: string[]
13 thumbnailUrl?: string 13 thumbnailUrl?: string
14 ext?: string 14 ext?: string
15 originallyPublishedAt?: Date 15 originallyPublishedAtWithoutTime?: Date
16 webpageUrl?: string 16 webpageUrl?: string
17 17
18 urls?: string[] 18 urls?: string[]
@@ -81,7 +81,7 @@ class YoutubeDLInfoBuilder {
81 tags: this.getTags(obj.tags), 81 tags: this.getTags(obj.tags),
82 thumbnailUrl: obj.thumbnail || undefined, 82 thumbnailUrl: obj.thumbnail || undefined,
83 urls: this.buildAvailableUrl(obj), 83 urls: this.buildAvailableUrl(obj),
84 originallyPublishedAt: this.buildOriginallyPublishedAt(obj), 84 originallyPublishedAtWithoutTime: this.buildOriginallyPublishedAt(obj),
85 ext: obj.ext, 85 ext: obj.ext,
86 webpageUrl: obj.webpage_url 86 webpageUrl: obj.webpage_url
87 } 87 }