Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YT sync no longer working #440

Open
TILvids opened this issue Jun 21, 2024 · 3 comments
Open

YT sync no longer working #440

TILvids opened this issue Jun 21, 2024 · 3 comments

Comments

@TILvids
Copy link

TILvids commented Jun 21, 2024

Randomly about 1-2 weeks ago, YT syncs for channels stopped working on my server. I thought it might be because I was still on PeerTube 5.x.x (due to issues with Yunohost being able to upgrade to 6.x.x), so after some effort, I was finally able to get PeerTube updated to latest 6.2.1. However, after doing so, YT imports for all channels are still failing. Here is part of the error log I'm seeing:

error[6/21/2024, 4:29:24 PM] Cannot build import for https://www.youtube.com/watch?v=OVrF7x1utsc in channel Main ********* channel

{
  "err": {
    "stack": "Error: Command failed with exit code 1: /usr/bin/python3 /home/yunohost.app/peertube/storage/bin/yt-dlp --dump-json -f bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/bestvideo[ext=mp4]+bestaudio[ext=m4a]/best https://www.youtube.com/watch?v=OVrF7x1utsc\nERROR: [youtube] OVrF7x1utsc: Sign in to confirm you’re not a bot. This helps protect our community. Learn more\n    at makeError (file:///var/www/peertube/node_modules/execa/lib/error.js:60:11)\n    at handlePromise (file:///var/www/peertube/node_modules/execa/index.js:124:26)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async YoutubeDLCLI.run (file:///var/www/peertube/dist/core/helpers/youtube-dl/youtube-dl-cli.js:141:24)\n    at async YoutubeDLCLI.getInfo (file:///var/www/peertube/dist/core/helpers/youtube-dl/youtube-dl-cli.js:89:22)\n    at async YoutubeDLWrapper.getInfoForDownload

...it continues on like that for a while (I can get more if needed and finally concludes like so:

bestvideo[ext=mp4]+bestaudio[ext=m4a]/best\" \"https://www.youtube.com/watch?v=OVrF7x1utsc\"",
    "exitCode": 1,
    "stdout": "",
    "stderr": "ERROR: [youtube] OVrF7x1utsc: Sign in to confirm you’re not a bot. This helps protect our community. Learn more",
    "cwd": "/var/www/peertube",
    "failed": true,
    "timedOut": false,
    "isCanceled": false,
    "killed": false
  },
  "tags": [
    "channel-synchronization"
  ]
}

I definitely have users with channels that are depending on this to work, so any help is appreciated!

@TILvids
Copy link
Author

TILvids commented Jun 22, 2024

Further update: yt-dlp community is reporting a lot of trouble lately with YT blocking access because it detects it as a "bot". My guess is that if your server gets flagged, YT sync may no longer work (no idea if that's temporary or permanent). Just another reason why creators should upload directly to PeerTube, I guess.

yt-dlp/yt-dlp#10128

@tio-trom
Copy link

tio-trom commented Aug 2, 2024

Yah we are seeing the same issue....nothing got fixed for you? I do not know if there is a solution for this ... Chocobozzz/PeerTube#6522

@TILvids
Copy link
Author

TILvids commented Aug 2, 2024

Yup, looks like the blame all lies with Google on this one. The importance of not having a single source of content online...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants