Mirror youtube channel with "peertube-import-videos" does not work, only 30 videos

Hello,
I have a question. I am trying to clone a YouTube channel to my Peertube instance with the tool peertube-import-videos. The import works very well but only for the first 30 videos, the other 700 videos are not taken into account. Is this a bug or did I forget a parameter?

with peertube-import-videos:
node ./dist/server/tools/peertube-import-videos.js -u ‹ peertube.domain.de › -U ‹ username › --password ‹ password › --tmpdir ‹ /home/username/download/peertube › --target-url ‹ YouTube/channel_name › -C ‹ channel.name ›

When I use YouTube-dl, I can download all the videos:
youtube-dl -f best -ciw -o « %(title)s.%(ext)s » -v YouTube/channel_name

Hi,

Do you see an error when you run the script? What is the script output?

Hi, thanks for your answer. No I can not see any errors. I have attached three outputs from three YouTube channels with different URL’s. I always get only 30 videos.

First Youtube Channel: https://www.youtube.com/c/SerienFlashde
Fixing URL to https://www.youtube.com/c/SerienFlashde/videos?view=0&sort=dd&shelf_id=0.
info: Will download and upload 30 videos.

info: ############################################################

info: Downloading video "Serien-Highlights: Neu im Januar 2021 | SerienFlash"...
info: [youtube] DXv_-sRhaqI: Downloading webpage
[download] Destination: /home/jakob/download/peertube/e1fc374588e469daefeb2a651e30f33f97841068eb8528da59d2e171724dfc13.f136.mp4
[download] 100% of 63.12MiB in 00:0494MiB/s ETA 00:005
[download] Destination: /home/jakob/download/peertube/e1fc374588e469daefeb2a651e30f33f97841068eb8528da59d2e171724dfc13.mp4.f140
[download] 100% of 17.78MiB in 00:0178MiB/s ETA 00:009
[ffmpeg] Merging formats into "/home/jakob/download/peertube/e1fc374588e469daefeb2a651e30f33f97841068eb8528da59d2e171724dfc13.mp4"
Deleting original file /home/jakob/download/peertube/e1fc374588e469daefeb2a651e30f33f97841068eb8528da59d2e171724dfc13.f136.mp4 (pass -k to keep)
Deleting original file /home/jakob/download/peertube/e1fc374588e469daefeb2a651e30f33f97841068eb8528da59d2e171724dfc13.mp4.f140 (pass -k to keep)
info: 
Uploading on PeerTube video "Serien-Highlights: Neu im Januar 2021 | SerienFlash".
warn: Uploaded video "Serien-Highlights: Neu im Januar 2021 | SerienFlash"!

info: ############################################################

info: Downloading video "Meine Lieblingsserien 2020 | Serien Highlights | SerienFlash"...
info: [youtube] 91qNFG78Rcc: Downloading webpage
[download] Destination: /home/jakob/download/peertube/775b6ae4b37daa22f7447d84ec1431cf3c8e0eb56a0b0b08d360733a766c5332.f136.mp4
[download] 100% of 79.23MiB in 00:0586MiB/s ETA 00:000
[download] Destination: /home/jakob/download/peertube/775b6ae4b37daa22f7447d84ec1431cf3c8e0eb56a0b0b08d360733a766c5332.mp4.f140
[download] 100% of 23.98MiB in 00:0115MiB/s ETA 00:005
[ffmpeg] Merging formats into "/home/jakob/download/peertube/775b6ae4b37daa22f7447d84ec1431cf3c8e0eb56a0b0b08d360733a766c5332.mp4"
Deleting original file /home/jakob/download/peertube/775b6ae4b37daa22f7447d84ec1431cf3c8e0eb56a0b0b08d360733a766c5332.f136.mp4 (pass -k to keep)
Deleting original file /home/jakob/download/peertube/775b6ae4b37daa22f7447d84ec1431cf3c8e0eb56a0b0b08d360733a766c5332.mp4.f140 (pass -k to keep)
info: 
Uploading on PeerTube video "Meine Lieblingsserien 2020 | Serien Highlights | SerienFlash".
warn: Uploaded video "Meine Lieblingsserien 2020 | Serien Highlights | SerienFlash"!
........
........
........
Second Youtube Channel: https://www.youtube.com/channel/UCkfDws3roWo1GaA3pZUzfIQ
Fixing URL to https://www.youtube.com/c/RocketBeansLetsPlay/videos?view=0&sort=dd&shelf_id=0.
info: Will download and upload 30 videos.

info: ############################################################

info: Downloading video "Simons Alptraum wird wahr - Rätsel + Horror im Hotel! | The Medium #2"...
info: [youtube] jCBCc8OljSo: Downloading webpage
[download] Destination: /home/jakob/download/peertube/b5dc2cb936f49ddb10c60a66f761999dcd816007744f3d4f56d440ee787edab9.f298.mp4
[download] 100% of 631.63MiB in 00:3715MiB/s ETA 00:009101
[download] Destination: /home/jakob/download/peertube/b5dc2cb936f49ddb10c60a66f761999dcd816007744f3d4f56d440ee787edab9.mp4.f140
[download] 100% of 82.32MiB in 00:0424MiB/s ETA 00:006
[ffmpeg] Merging formats into "/home/jakob/download/peertube/b5dc2cb936f49ddb10c60a66f761999dcd816007744f3d4f56d440ee787edab9.mp4"
Deleting original file /home/jakob/download/peertube/b5dc2cb936f49ddb10c60a66f761999dcd816007744f3d4f56d440ee787edab9.f298.mp4 (pass -k to keep)
Deleting original file /home/jakob/download/peertube/b5dc2cb936f49ddb10c60a66f761999dcd816007744f3d4f56d440ee787edab9.mp4.f140 (pass -k to keep)
info: 
Uploading on PeerTube video "Simons Alptraum wird wahr - Rätsel + Horror im Hotel! | The Medium #2".
warn: Uploaded video "Simons Alptraum wird wahr - Rätsel + Horror im Hotel! | The Medium #2"!

info: ############################################################

info: Downloading video "1A Intrigen | Among Us Modded mit Simon, Jan Gustafsson, Dhalu uvm"...
info: [youtube] swVAjf52GIs: Downloading webpage
[download] Destination: /home/jakob/download/peertube/5a1b39f808ec029e1e17d799130d60919f98ab0962bb505c6ed05cb447813891.f298.mp4
[download] 100% of 1.16GiB in 01:0850MiB/s ETA 00:001:01
[download] Destination: /home/jakob/download/peertube/5a1b39f808ec029e1e17d799130d60919f98ab0962bb505c6ed05cb447813891.mp4.f140
[download] 100% of 154.07MiB in 00:0805MiB/s ETA 00:0047
[ffmpeg] Merging formats into "/home/jakob/download/peertube/5a1b39f808ec029e1e17d799130d60919f98ab0962bb505c6ed05cb447813891.mp4"
Deleting original file /home/jakob/download/peertube/5a1b39f808ec029e1e17d799130d60919f98ab0962bb505c6ed05cb447813891.f298.mp4 (pass -k to keep)
Deleting original file /home/jakob/download/peertube/5a1b39f808ec029e1e17d799130d60919f98ab0962bb505c6ed05cb447813891.mp4.f140 (pass -k to keep)
info: 
Uploading on PeerTube video "1A Intrigen | Among Us Modded mit Simon, Jan Gustafsson, Dhalu uvm".
warn: Uploaded video "1A Intrigen | Among Us Modded mit Simon, Jan Gustafsson, Dhalu uvm"!

info: ############################################################

info: Downloading video "Unerwarteter Abschied | Pokémon Nuzlocke Challenge 2.0 #04 mit Ilyass & Viet"...
Third YouTube Channel: https://www.youtube.com/c/apfeltalk/videos
info: Will download and upload 30 videos.

info: ############################################################

info: Downloading video "Vernetzes On-Air-Schild fürs Apfeltalk-Studio selber bauen | DIY"...
info: [youtube] u3oaJzD083w: Downloading webpage
[download] Destination: /home/jakob/download/peertube/b5cd097ea23a4fdfb51a2054e413fff1ab5c879c9f05d9a9e2f29e2a42d06398.f298.mp4
[download] 100% of 69.47MiB in 00:0891MiB/s ETA 00:001
[download] Destination: /home/jakob/download/peertube/b5cd097ea23a4fdfb51a2054e413fff1ab5c879c9f05d9a9e2f29e2a42d06398.mp4.f140
[download] 100% of 6.68MiB in 00:0183MiB/s ETA 00:007
[ffmpeg] Merging formats into "/home/jakob/download/peertube/b5cd097ea23a4fdfb51a2054e413fff1ab5c879c9f05d9a9e2f29e2a42d06398.mp4"
Deleting original file /home/jakob/download/peertube/b5cd097ea23a4fdfb51a2054e413fff1ab5c879c9f05d9a9e2f29e2a42d06398.f298.mp4 (pass -k to keep)
Deleting original file /home/jakob/download/peertube/b5cd097ea23a4fdfb51a2054e413fff1ab5c879c9f05d9a9e2f29e2a42d06398.mp4.f140 (pass -k to keep)
info: 
Uploading on PeerTube video "Vernetzes On-Air-Schild fürs Apfeltalk-Studio selber bauen | DIY".
warn: Uploaded video "Vernetzes On-Air-Schild fürs Apfeltalk-Studio selber bauen | DIY"!

info: ############################################################

info: Downloading video "iPhone 12 im Hands On | Apfeltalk LIVE! #280"...
info: [youtube] LPsEFUvj1xI: Downloading webpage
[download] Destination: /home/jakob/download/peertube/de90f464dc27f8a87448fb8933b593bafdd85ff3a09d45335a5e95ad3d25653f.f136.mp4
[download] 100% of 120.63MiB in 00:1309MiB/s ETA 00:00401
[download] Destination: /home/jakob/download/peertube/de90f464dc27f8a87448fb8933b593bafdd85ff3a09d45335a5e95ad3d25653f.mp4.f140
[download] 100% of 51.46MiB in 00:0739MiB/s ETA 00:003
[ffmpeg] Merging formats into "/home/jakob/download/peertube/de90f464dc27f8a87448fb8933b593bafdd85ff3a09d45335a5e95ad3d25653f.mp4"
Deleting original file /home/jakob/download/peertube/de90f464dc27f8a87448fb8933b593bafdd85ff3a09d45335a5e95ad3d25653f.f136.mp4 (pass -k to keep)
Deleting original file /home/jakob/download/peertube/de90f464dc27f8a87448fb8933b593bafdd85ff3a09d45335a5e95ad3d25653f.mp4.f140 (pass -k to keep)
info: 
Uploading on PeerTube video "iPhone 12 im Hands On | Apfeltalk LIVE! #280".
warn: Uploaded video "iPhone 12 im Hands On | Apfeltalk LIVE! #280"!

info: ############################################################

info: Downloading video "Welches iPad im Jahr 2020 kaufen 🤔 - iPad Air 4 oder iPad Pro? 😅"...
info: [youtube] mjciLuzmLNY: Downloading webpage
[download] Destination: /home/jakob/download/peertube/d363f140a2cd8c6ebf0682bf3e26d701fd3a41c4f01336a460b4e6a3c219bb49.f136.mp4
[download] 100% of 23.46MiB in 00:0265MiB/s ETA 00:004
[download] Destination: /home/jakob/download/peertube/d363f140a2cd8c6ebf0682bf3e26d701fd3a41c4f01336a460b4e6a3c219bb49.mp4.f140
[download] 100% of 2.77MiB in 00:0000MiB/s ETA 00:003
[ffmpeg] Merging formats into "/home/jakob/download/peertube/d363f140a2cd8c6ebf0682bf3e26d701fd3a41c4f01336a460b4e6a3c219bb49.mp4"
Deleting original file /home/jakob/download/peertube/d363f140a2cd8c6ebf0682bf3e26d701fd3a41c4f01336a460b4e6a3c219bb49.f136.mp4 (pass -k to keep)
Deleting original file /home/jakob/download/peertube/d363f140a2cd8c6ebf0682bf3e26d701fd3a41c4f01336a460b4e6a3c219bb49.mp4.f140 (pass -k to keep)
info: 
Uploading on PeerTube video "Welches iPad im Jahr 2020 kaufen 🤔 - iPad Air 4 oder iPad Pro? 😅".
warn: Uploaded video "Welches iPad im Jahr 2020 kaufen 🤔 - iPad Air 4 oder iPad Pro? 😅"!

info: ############################################################

I forgot to say that I set up PeerTube via docker.

I can correctly download all the channel videos on my side.

Please try to install CLI tools outside docker: https://docs.joinpeertube.org/maintain-tools?id=remote-tools

oh sorry there was a misunderstanding. I installed Peertube with Docker and I installed the tools as in the documentation on the host system. I also updated both systems. It is also strange that I have the 30 video download restrictions only on Youtube. When I download videos from https://odysee.com/ I don’t have this problem.

I have found the solution. I deleted the source file and downloaded it again from GIT. Now it works, no idea why. Thanks for your time @Chocobozzz!