Download livestreams from Mandolin
APACHE-2.0 License
mandolin-rip will download .ts
video files from the Mandolin streaming platform as a stream is playing.
It uses the same source videos that their web app does, giving you the highest quality possible.
src/config.json
and update the streams to downloadyarn
yarn build
yarn start
Files will be downloaded into the downloads
directory, grouped by stream UUID.
After everything has been downloaded you can stitch the clips together using FFmpeg:
yarn stitch
This will output an mp4
file for each stream in the stitched
directory.
Mandolin uses Firebase Auth for user authentication and minting API tokens. Reverse engineering their compiled JavaScript is very tedious so instead of that you can use the following instructions to get an API key after it's generated:
https://firefly.mandolin.com/watch/d8cd5355-7bf4-480c-abc2-64d95f18296a
has a UUID of d8cd5355-7bf4-480c-abc2-64d95f18296a
src/config.json
You can repeat these steps whenever you like to get a fresh API key. Note: API tokens seem to expire every 60 minutes, make sure you have a new one saved in the config before the token expires.