You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Tsia af14393d23 added SponsorBlock API + youtube login 2 months ago
.gitignore added SponsorBlock API + youtube login 2 months ago
LICENSE added SponsorBlock API + youtube login 2 months ago
README.md added SponsorBlock API + youtube login 2 months ago
ad-segments-cron.sh added SponsorBlock API + youtube login 2 months ago
ad_whitelist added SponsorBlock API + youtube login 2 months ago
download.sh added SponsorBlock API + youtube login 2 months ago
info.xml initial commit 1 year ago
postprocess.sh added SponsorBlock API + youtube login 2 months ago
process-ad-segments.sh added SponsorBlock API + youtube login 2 months ago
subscriptions-web.py added SponsorBlock API + youtube login 2 months ago
subscriptions-web.service added systemd unit 1 year ago
youtube-dl.sh added SponsorBlock API + youtube login 2 months ago

README.md

  • install youtube-dl
  • clone this into /usr/local/scripts/youtube
  • put youtube cookies into cookies_ and adjust download.sh accordingly
  • setup cronjob. for example: */15 * * * * flock --no-fork --exclusive --nonblock /var/lock/plex-youtube.lock -c '/usr/local/scripts/youtube/download.sh > /var/log/plex-youtube.log'
  • setup cronjob. for example: */15 * * * * flock --no-fork --exclusive --nonblock /var/lock/plex-youtube-adsegments.lock -c '/usr/local/scripts/youtube/ad-segment-cron.sh > /var/log/plex-youtube-adsegment.log'
  • setup subscriptions webinterface:
    • cp subscriptions-web.service /etc/systemd/system/
    • systemctl daemon-reload
    • systemctl enable --now subscriptions-web

this script downloads to /storage/plex/media/youtube/ and deletes old files after 14 days. this can be configured in download.sh and youtube-dl.sh

you may need to change the path to youtube-dl in youtube-dl.sh

Subscription URLs can be Youtube Channel URLs or any other URL that is supported by youtube-dl

Subscription Web Interface is listening on Port 8080 by default. Can be changed in subscription-web.service

Uses SponsorBlock data licensed used under CC BY-NC-SA 4.0. More details: https://sponsor.ajay.app/