How I got youtube mirroring working again on peertube

TLDR: proxy tor

Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeerrrr YouTube

Sorry but that's

STORY TELLING TIIIIIME

It's not that I hate YouTube, it's more that YouTube hates me

well like all capitalist

Tech companies are well, kind of more obvious in there way of manipulating us and force us to stay on them so called "free of charge" platforms

PeerTube is a great fedivers alternative to YouTube but... hard for content creators or mirrors to manage both, that's why peertube has a nice feature to synchronize channels from youtube, good thing to avoid google's algorithm and their tracking

how ever, since it's a nice feature and google has, long ago, forgotten about "don't be evil", YouTube does everything it can to break it.

Lately they've banned every IPs of known datacenters

That broke the mirroring features of many peertube servers, even mine. So I can for a solution, here it is !

The ~~~~~~~~solution~~~~~~~~~~~

Remember what I've said, youtube: bad, peertube: nice (not the kind of nice guy that pretends to be nice to make you sleep with him, this is more like youtube)

Peertube allows to specify a proxy for video downloading, though this option:

import:
  # Add ability for your users to import remote videos (from YouTube, torrent...)
  videos:
    http:
      proxies:
        - first-proxy
        - second-proxy

great, so basically... I've used tor

so please please please don't abuse it, the advantage of it is that you download the video ONCE and then it's available for everybody but tor is not made for heavy traffic, so, be nice, be respectful

(before anybody says anything about one of my servers mirroring a lot of channels: I'm not talking about that one, that one is a home server and doesn't need a proxy to work)

so.

Two ways of adding a tor proxy:

first if you are using docker, there should be a way to get it in a container BUT it didn't work in my case, don't know why

SO.

I've installed it on my host

sudo apt install tor

allowed my docker ips

sudo nano /etc/tor/torrc
SocksPort 172.17.0.1:9050

then in peertube conf, I've set the proxy to:

      proxies:
         - "socks5://host.docker.internal:9050"

and... is worked !

Proxy Information
Original URL
gemini://robot.salcie.fi/2025-03-25peertubemirroryoutube.gmi
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
720.430625 milliseconds
Gemini-to-HTML Time
2.29075 milliseconds

This content has been proxied by September (3851b).