jmbannon / ytdl-sub

Lightweight tool to automate downloading and metadata generation with yt-dlp
https://ytdl-sub.readthedocs.io
GNU General Public License v3.0
1.59k stars 61 forks source link

Discord Webhook Integration? #960

Open ErbeckM opened 2 months ago

ErbeckM commented 2 months ago

Any consideration for Discord webhook integration to announce completion of the script when run? Could be useful when script run is automated and you could publish stats about number of videos pulled and on which subscriptions akin to what you already publish at job completion. This would act sort of as notifications that new videos are available and downloaded since you can only see the ytdl-sub stats in the logs in the docker etc.

kieraneglin commented 2 months ago

(This @ the maintainer)

Jumping in to say that I'm working on a yt-dlp-backed app and I ended up using Apprise - gives you a ton of notifications options (including Discord webhooks!) with essentially zero configuration. There's a Python API but I ended up calling it as an executable

I'm writing my app in Elixir so the code may be so different as to be a useless comparison, but if you're curious here's how simple the implementation is (one and two)

jmbannon commented 2 months ago

This would be a neat feature, I think a smidge of work would need to be added to make it into a plugin and have access to the 'transaction log'.

jmbannon commented 2 months ago

And thanks for the suggestion @kieraneglin ! I saw your first announcement in r/selfhosted, looks like a nice alternative for folks who prefer GUI :slightly_smiling_face: