From: Chocobozzz Date: Fri, 16 Feb 2018 09:11:12 +0000 (+0100) Subject: Import videos in the correct order X-Git-Tag: v0.0.26-alpha~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5f26c73521c50309a7041ecb81c6aa4fc3281f39;p=oweals%2Fpeertube.git Import videos in the correct order --- 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 () { const res2 = await login(program['url'], client, user) accessToken = res2.body.access_token - const options = [ '-j', '--flat-playlist' ] + const options = [ '-j', '--flat-playlist', '--playlist-reverse' ] youtubeDL.getInfo(program['youtubeUrl'], options, processOptions, async (err, info) => { if (err) throw err