/ytbu

Automatically backup your youtube subscription's videos.

Primary LanguageShellGNU General Public License v3.0GPL-3.0

ytbu - Automatically backup your youtube subscription's videos.

Supports webhook notifications for OAuth token refresh. Main code in bash, API retrived with python, downloads with youtube-dl.

Setup:

ytbu is meant to be run on linux, with crontab. (timing guide) Cron should execute ytbu.sh

See ytbu.sh for more instructions and for the main config. Also edit ytbu_getdata.py to set the working directory for it aswell and set up webhooks for token refresh notifications.

youtube-dl may be configured at the bottom of ytbu.sh

Troubleshooting

  • youtube-dl errors: Make sure youtube-dl is up to date by running sudo youtube-dl -U
  • Your API token may be expired. If so, run it manually, without crontab and authenticate.
  • Out of space? Split the ytbu_channels.txt to multiple files and run 69th line of ytbu.sh to download the files (the line beginning with $ydl), then manually move them to your storage and repeat. Alternatively change youtube-dl's output to an rclone mount