fediplug/README.md

49 lines
2.6 KiB
Markdown
Raw Normal View History

2023-02-22 14:14:25 +01:00
# fediplug
2017-12-29 01:38:54 +01:00
A Mastodon client that automatically plays your friends' music as they toot links to it.
2018-10-23 01:52:00 +02:00
## What's new in 2.2
2018-07-20 19:10:23 +02:00
2023-02-22 14:14:25 +01:00
If you've been using fediplug before, the all-new version 2.2 will be a little different!
2018-07-20 19:10:23 +02:00
2023-02-22 14:14:25 +01:00
- You now specify the instance you want to stream from on the command line, instead of setting it in the environment. fediplug has been upgraded with the power of [Click](http://click.pocoo.org/) to give it a more modern command-line interface.
2018-07-20 19:10:23 +02:00
2018-07-23 02:27:09 +02:00
- We use [appdirs](https://pypi.org/project/appdirs/) to keep downloaded music files in your operating system's user cache directory.
- We use [keyring](https://pypi.org/project/keyring/) to store your client credentials and access token, securely if your operating system supports it. If you already have `.secret` files from an earlier version, we'll migrate them automatically for you.
2018-07-20 19:10:23 +02:00
Be sure to follow all the instructions, including re-running `pipenv install` to update the installed dependencies.
2018-01-21 18:06:07 +01:00
## Getting started
2023-02-22 14:14:25 +01:00
fediplug comes configured to use `ffplay` from [FFmpeg](https://ffmpeg.org/) to actually play music.
2018-03-06 00:53:08 +01:00
- On macOS, `ffplay` is part of the [Homebrew](https://brew.sh/) `ffmpeg` package, but you need to build it with `brew install ffmpeg --with-sdl2`.
- On Windows, `ffplay` is part of the [Scoop](http://scoop.sh/) `ffmpeg` package.
2017-12-29 01:38:54 +01:00
2023-02-22 14:14:25 +01:00
Use `pipenv install` from [Pipenv](https://docs.pipenv.org/) to install the Python dependencies and set up the fediplug script inside the virtual environment.
2017-12-29 01:38:54 +01:00
2023-02-22 14:14:25 +01:00
You can use the fediplug script with either `pipenv run fediplug` or by entering the Pipenv shell with `pipenv shell` and just running `fediplug`.
2018-04-03 03:49:10 +02:00
## Registering and logging in
2023-02-22 14:14:25 +01:00
To register fediplug to your instance, use `fediplug register example.com`.
2018-04-03 03:49:10 +02:00
2023-02-22 14:14:25 +01:00
To log in to your instance, use `fediplug login example.com`.
2018-01-21 18:06:07 +01:00
## Streaming
2023-02-22 14:14:25 +01:00
Use `fediplug stream example.com` to start the stream. You'll need to log in the first time.
2017-12-29 01:38:54 +01:00
2023-02-22 14:14:25 +01:00
Toots that include the hashtag #fediplug and have as their first link something that [youtube-dl](https://rg3.github.io/youtube-dl/) can play, will!
2017-12-29 01:38:54 +01:00
2023-02-22 14:14:25 +01:00
If new #fediplug toots come in while music is playing, they'll be downloaded immediately and queued to be played later.
2018-01-21 18:06:07 +01:00
2023-02-22 14:14:25 +01:00
Since version 2.2, thanks to [@bbonf](https://github.com/bbonf), if there's a recent #fediplug toot in your timeline, it'll be pulled up and played before the stream starts. Great if you just missed a song before starting your stream!
2018-10-23 01:52:00 +02:00
### Filtering
2023-02-22 14:14:25 +01:00
Since version 2.2, you can also, thanks to [@Jenkyrados](https://github.com/Jenkyrados), specify users to filter! Just add them to the command line after the server name, e.g. `fediplug stream example.com @user @otheruser@example.net`.
2018-10-23 01:52:00 +02:00