Comments (4)
You can already call webhooks by calling your own external scripts on each defined event (see the config file template). However, the events still lack some variables / placeholders right now, but let me know if you have specific values you'd like to see replaced in the commands. Right now there is only %VIDEO_URL% and %COOKIE_PATH% but we can add a lot more.
Anyway I think that's a good idea to have support for webhooks directly inside the program.
The tricky part is to make a generic interface to support various webhook APIs, all the while allowing easy customization by the user.
I can work out a quick and simple solution but feel free to submit patches if you have something more specific in mind.
I'm thinking of having the payload JSON in the config file, and the API endpoint URL (with the authentication tokens) could be in both the config file and environment variables. Would that be enough?
What kind of information would you like to send? My guess: upcoming video detected, video added to channel, live stream started (and the corresponding metadata).
from livestream_saver.
That sounds perfect thank you. It's mostly live stream started, yeah. Useful variables would be channel name, title, also date maybe.
from livestream_saver.
Added rudimentary webhook support in 187f9a4.
Here is an example of what you can achieve on Discord with the current implementation of hooks:
There might be bugs, so if you spot anything weird please let me know. I'll try to polish this a bit more later when I have some time.
Also I hope the documentation is clear enough for you to be able to use it.
from livestream_saver.
Thank you and merry Christmas! I'll try this out later this week hopefully.
from livestream_saver.
Related Issues (20)
- ffmpeg takes forever to read the concatenated ts HOT 4
- livestream_saver does not handle age-restricted videos correctly HOT 14
- New Youtube UI update, Livestreams moved to new tab HOT 3
- Missing Videos tab endpoint data for Livestream VODS HOT 2
- Cannot monitor or download (public videos = 0) HOT 1
- Streams no longer using Videos/Community tab to list live stream. HOT 2
- having trouble downloading streaming video. HTTP Error 404: Not Found HOT 2
- Unable to start livestream_saver on Ubuntu HOT 9
- Support monitoring multiple channels in one instance of the script HOT 4
- Could not find ffmpeg or ffprobe. HOT 1
- Unhandled exception: Missing streamingData key in json causing downloads to be interrupted HOT 4
- Exception while accessing title of video (possibly a pytube issue) HOT 1
- I think the latest change broke something HOT 2
- "The following content is not available on this app." errors HOT 8
- Help getting yt-dlp to spawn on events? HOT 4
- Cookie HOT 2
- Outdated client error. Retrying shortly... HOT 1
- SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] HOT 2
- How to install? HOT 4
- No module named 'yt_dlp' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livestream_saver.