diff options
author | Chocobozzz <me@florianbigard.com> | 2022-09-16 09:37:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-09-16 09:37:07 +0200 |
commit | 3204f4d17dec79413a94eae8a71b72e0c7ec7ba5 (patch) | |
tree | b6f5a2c3d6e55676972e671fb0ef429a7bdd975b /server/helpers/youtube-dl/youtube-dl-info-builder.ts | |
parent | c95fbe65530191d7be22341815ecb743c139396f (diff) | |
download | PeerTube-3204f4d17dec79413a94eae8a71b72e0c7ec7ba5.tar.gz PeerTube-3204f4d17dec79413a94eae8a71b72e0c7ec7ba5.tar.zst PeerTube-3204f4d17dec79413a94eae8a71b72e0c7ec7ba5.zip |
Fix sync import of latest videos
Diffstat (limited to 'server/helpers/youtube-dl/youtube-dl-info-builder.ts')
-rw-r--r-- | server/helpers/youtube-dl/youtube-dl-info-builder.ts | 4 |
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 | } |