Peertube: How to use system's youtube-dl or upgrade bundled youtube-dl

Created on 9 Nov 2020  路  3Comments  路  Source: Chocobozzz/PeerTube

I donwload and install Peertube. There comes /var/www/peertube/versions/peertube-v2.4.0/node_modules/youtube-dl but it's a concrete youtube-dl version.

I want to check and upgrade youtube-dl (cron.weekly) and I have 2 options:

  • A) pip install --upgrade youtube_dl
  • B) Peertube project's way to upgrade its bundled utilities.

The A option requires Peertube to have the ability to call system command for youtube_dl

Question

All 3 comments

Peertube checks for youtube-dl update every 24 hours.

The auto-updater within PeerTube is defined there: https://github.com/Chocobozzz/PeerTube/blob/develop/server/helpers/youtube-dl.ts#L133-L189

If you want to force immediate upgrade of the youtube-dl binary, you could write a tool, add it to the CLI like others at https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/tools.md#server-tools

Okay, thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

XenonFiber picture XenonFiber  路  3Comments

Angedestenebres picture Angedestenebres  路  3Comments

conferences-gesticulees picture conferences-gesticulees  路  3Comments

Jorropo picture Jorropo  路  3Comments

ufm picture ufm  路  3Comments