YouTube sync error

I’m trying to use the new possibility to import a whole channel from YouTube to my PeerTube instance but I’m getting a very weird error message which I really don’t understand gist:848bc8282d17bf4741e4e9c82ae548e6 · GitHub it says:

« YoutubeDL could not get list info from https://www.youtube.com/channel/UCJwshsQ0qwpLZrPZaUeCXSw … »

and then proceeds to show me all the information from YouTube :thinking:

Any ideas what could be the problem?

Hello,

Try to switch to yt-dlp in peertube config

From what I understand I already am, this is in my /var/www/peertube/config/production.yaml:

      youtube_dl_release:
        # Direct download URL to youtube-dl binary
        # Github releases API is also supported
        # Examples:
        #   * https://api.github.com/repos/ytdl-org/youtube-dl/releases
        #   * https://api.github.com/repos/yt-dlp/yt-dlp/releases
        #   * https://yt-dl.org/downloads/latest/youtube-dl
        url: 'https://api.github.com/repos/yt-dlp/yt-dlp/releases'

        # Release binary name: 'yt-dlp' or 'youtube-dl'
        name: 'yt-dlp'

and in the error message it says: release_git_head: '5d7c7d6',\n repository: 'yt-dlp/yt-dlp' which seems to indicate this release Release 2022.09.01 · yt-dlp/yt-dlp@5d7c7d6 · GitHub

I reproduced your bug, it should be fixed by Fix channel import with some channels · Chocobozzz/PeerTube@5cc2f0e · GitHub

Ah the data coming from YouTube doesn’t always have the same structure, I see.

Thanks for looking into it!