Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Import videos in the correct order

Chocobozzz5f26c73521c5
diff --git a/server/tools/import-youtube.ts b/server/tools/import-youtube.ts
index ab91afbc06..82f48d8f71 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