Git Product home page Git Product logo

Comments (4)

glubsy avatar glubsy commented on August 19, 2024

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.

Ryu1845 avatar Ryu1845 commented on August 19, 2024

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.

glubsy avatar glubsy commented on August 19, 2024

Added rudimentary webhook support in 187f9a4.
Here is an example of what you can achieve on Discord with the current implementation of hooks:
2021-12-23_20-56-15

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.

Ryu1845 avatar Ryu1845 commented on August 19, 2024

Thank you and merry Christmas! I'll try this out later this week hopefully.

from livestream_saver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.