aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-16 10:11:12 +0100
committerChocobozzz <me@florianbigard.com>2018-02-16 10:11:12 +0100
commit5f26c73521c50309a7041ecb81c6aa4fc3281f39 (patch)
tree25541581b9935e5153c83969c5e2873ab084f1f1
parentf000931687b52f0e4d072ad0a939b8b08dcf2109 (diff)
downloadPeerTube-5f26c73521c50309a7041ecb81c6aa4fc3281f39.tar.gz
PeerTube-5f26c73521c50309a7041ecb81c6aa4fc3281f39.tar.zst
PeerTube-5f26c73521c50309a7041ecb81c6aa4fc3281f39.zip
Import videos in the correct order
-rw-r--r--server/tools/import-youtube.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tools/import-youtube.ts b/server/tools/import-youtube.ts
index ab91afbc0..82f48d8f7 100644
--- a/server/tools/import-youtube.ts
+++ b/server/tools/import-youtube.ts
@@ -48,7 +48,7 @@ async function run () {
48 const res2 = await login(program['url'], client, user) 48 const res2 = await login(program['url'], client, user)
49 accessToken = res2.body.access_token 49 accessToken = res2.body.access_token
50 50
51 const options = [ '-j', '--flat-playlist' ] 51 const options = [ '-j', '--flat-playlist', '--playlist-reverse' ]
52 youtubeDL.getInfo(program['youtubeUrl'], options, processOptions, async (err, info) => { 52 youtubeDL.getInfo(program['youtubeUrl'], options, processOptions, async (err, info) => {
53 if (err) throw err 53 if (err) throw err
54 54