queue entire albums; fixes #7, thanks @Jenkyrados This also appears to work for YouTube mixes, which, oh my gosh, that can get kind of crazy. So maybe it would be good to enhance this support later to start playing as each file comes down, rather than waiting for the entire thing. But I'm happy with this as a start. |
||
---|---|---|
fediplay | ||
.env | ||
.gitignore | ||
LICENSE.md | ||
Pipfile | ||
Pipfile.lock | ||
README.md | ||
setup.py | ||
test_fediplay.py |
fediplay
A Mastodon client that automatically plays your friends' music as they toot links to it.
Getting started
fediplay comes configured to use ffplay
from FFmpeg to actually play music.
-
On macOS,
ffplay
is part of the Homebrewffmpeg
package, but you need to build it withbrew install ffmpeg --with-sdl2
. -
On Windows,
ffplay
is part of the Scoopffmpeg
package.
Edit .env
and set FEDIPLAY_API_BASE_URL
to your Mastodon instance.
Use pipenv install
from Pipenv to install the Python dependencies.
Streaming
Use pipenv run python -m fediplay
to start the stream. You'll need to log in the first time.
Toots that include the hashtag #fediplay and have as their first link something that youtube-dl can play, will!
If new #fediplay toots come in while music is playing, they'll be downloaded immediately and queued to be played later.