aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/youtube-dl.ts
diff options
context:
space:
mode:
authorAndrés Maldonado <amaldona@etu.utc.fr>2019-01-05 19:55:40 +0100
committerChocobozzz <me@florianbigard.com>2019-02-12 11:19:19 +0100
commit84929846e743f4b5f3971b386ea2c447db8c416f (patch)
treebc774e50d0607137071b6aa23fef88e18dbc9f8c /server/helpers/youtube-dl.ts
parent4e553a41fdc67c4da186502522ac99a5ba230453 (diff)
downloadPeerTube-84929846e743f4b5f3971b386ea2c447db8c416f.tar.gz
PeerTube-84929846e743f4b5f3971b386ea2c447db8c416f.tar.zst
PeerTube-84929846e743f4b5f3971b386ea2c447db8c416f.zip
Import original publication date (CLI)
* Import original publication date when importing a video from YouTube using the CLI * Fix lint issues
Diffstat (limited to 'server/helpers/youtube-dl.ts')
-rw-r--r--server/helpers/youtube-dl.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.ts
index 4d4b37ef9..a5ab92df0 100644
--- a/server/helpers/youtube-dl.ts
+++ b/server/helpers/youtube-dl.ts
@@ -175,7 +175,7 @@ function normalizeObject (obj: any) {
175 175
176function buildVideoInfo (obj: any) { 176function buildVideoInfo (obj: any) {
177 177
178 const date = obj.upload_date.slice(0,4)+","+obj.upload_date.slice(4,6)+","+obj.upload_date.slice(6,8) 178 const date = obj.upload_date.slice(0,4) + ',' + obj.upload_date.slice(4,6) + ',' + obj.upload_date.slice(6,8)
179 179
180 return { 180 return {
181 name: titleTruncation(obj.title), 181 name: titleTruncation(obj.title),