Coder Social home page Coder Social logo

rcy / mixchat Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 0.0 3.78 MB

irc bot inteface to youtube-dl and liquidsoap / icecast2

Home Page: http://mixchat.ca/emb

Dockerfile 0.78% Makefile 4.48% JavaScript 50.69% HTML 2.38% Shell 0.76% PLpgSQL 32.22% Nix 0.24% CSS 0.65% Procfile 0.22% Go 7.58%
irc liquidsoap icecast youtube-dl audio bot music

mixchat's Introduction

Mixchat

Control an icecast server via IRC!

An irc bot listens for commands to download and queue music using youtube-dl.

Audio files are downloaded and requests sent to liquidsoap server.

mixchat's People

Contributors

rcy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mixchat's Issues

dockerize nginx

currently there is a system install of nginx and configuration is not tracked in git

add ability to add tracks from web

  • add input for url with submit button
  • add api endpoint
  • insert event, parallel to irc event, but via 'web' instead
  • clear input after posting
  • show results
  • broadcast to irc

add !uptime

larger issue: provide a way to monitor cpu status quickly

automate deployments

doing really hacky stuff now directly from dev box deploying with docker-compose

retry 403 errors on !add

often its the case that retrying a recent 403 failure on an !add command will be successful.

Retry the job in this case a few times, and only return an error if can never succeed.

# original add here:

15:46:32 <geordie> !add https://www.youtube.com/watch?v=j3c-vd3L8vU
15:46:36 <djfullmoon> geordie: ERROR: unable to download video data: HTTP Error 403: Forbidden !error 375

# retried and it worked:

16:34:09 <rcy> !add https://www.youtube.com/watch?v=j3c-vd3L8vU
16:35:22 <djfullmoon> rcy: queued track 950 /media/BAD_CARTRIDGE_E-Pro_-_remix_by_Paza_The_X-Dump-j3c-vd3L8vU.ogg

# error details:

16:38:05 <rcy> !error 375
16:38:05 <djfullmoon> rcy: {"error":{"failed":true,"killed":false,"stderr":"ERROR: unable to download video data: HTTP Error 403:
                      Forbidden","stdout":"","command":"/app/node_modules/youtube-dl-exec/bin/youtube-dl https://www.youtube.com/watch?v=j3c-vd3L8vU --quiet --extract-audio --audio-format
                      vorbis --no-call-home --youtube-skip-dash-manifest --add-metadata --restrict-filenames --no-playlist --exec mv {} /media && echo
16:38:05 <djfullmoon> {}","exitCode":1,"timedOut":false,"isCanceled":false,"shortMessage":"Command failed with exit code 1: /app/node_modules/youtube-dl-exec/bin/youtube-dl
                      https://www.youtube.com/watch?v=j3c-vd3L8vU --quiet --extract-audio --audio-format vorbis --no-call-home --youtube-skip-dash-manifest --add-metadata --restrict-filenames
                      --no-playlist --exec mv {} /media && echo
16:38:05 <djfullmoon> {}","escapedCommand":"\"/app/node_modules/youtube-dl-exec/bin/youtube-dl\" \"https://www.youtube.com/watch?v=j3c-vd3L8vU\" --quiet --extract-audio --audio-format vorbis
                      --no-call-home --youtube-skip-dash-manifest --add-metadata --restrict-filenames --no-playlist --exec \"mv {} /media && echo {}\""},"status":"error","message":"ERROR:
                      unable to download video data: HTTP Error 403: Forbidden"}

upstream youtube-dl is broken

currently running

/app/node_modules/youtube-dl-exec/bin # ./youtube-dl --version
2021.06.06

in the worker docker via youtube-dl-exec js package

How to Install

Good Day!
I am interested to try you code to use on our online station. Hope you can help me out on how to install it?

Thanks in advance!

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.