diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-16 10:11:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-16 10:11:12 +0100 |
commit | 5f26c73521c50309a7041ecb81c6aa4fc3281f39 (patch) | |
tree | 25541581b9935e5153c83969c5e2873ab084f1f1 /server/tools/import-youtube.ts | |
parent | f000931687b52f0e4d072ad0a939b8b08dcf2109 (diff) | |
download | PeerTube-5f26c73521c50309a7041ecb81c6aa4fc3281f39.tar.gz PeerTube-5f26c73521c50309a7041ecb81c6aa4fc3281f39.tar.zst PeerTube-5f26c73521c50309a7041ecb81c6aa4fc3281f39.zip |
Import videos in the correct order
Diffstat (limited to 'server/tools/import-youtube.ts')
-rw-r--r-- | server/tools/import-youtube.ts | 2 |
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 | ||