Media Player Broker
Project description
README
NOTICE: this app is being released in beta status, things will likely change but we will do our best to make non-breaking changes.
Media Player Broker (mpb) is an application that helps you play and track media you have watched over disparet locations. mpb keeps track of what you have played at Location A so when you are at Location B you can see what you have watched from either location to avoid digging through history command output over SSH. mpb is not a player itself, it can be configured to launch a player such as vlc, smplayer or others when you use the 'play' command.
The Need
I needed something that remembers what episode of MacGyver I had watched in one location so when I was in another location I could continue watching the next episode without digging through history
output or keeping track of what was played where.
mpb consists of a CLI application (the client) and a database (couchdb). From the client you injest
your media metadata. This extracts the file names from file paths and stores the data in the database. After injesting, you can list
your media which shows you the media Item, whether it has been watched or not along with a Rating, Notes, and the Sources the item is available at. You can then use the play
command along with the Item to watch the Item. After playback is completed you are prompted to mark the item as played/watched, Rate it and add Notes - all of which are used in the list
command to show what you have already watched and what is new.
Install
We recommend using pipx to install mpbroker: pipx install mpbroker
. You can also install via pip: pip install --user mpbroker
.
mpbroker uses a config file to store your setup. This file contains information such as your media player, the database url, and types of data to injest. You can grap the sample config file at mpbroker/example/user_config.toml
and place it in a config location. mpbroker searches the following locations for the config file in order of preference:
- $MPB_CONFIG_HOME: set this environment variable to any path you like and place the mpbroker
user_config.toml
file in this location - $XDG_CONFIG_HOME/mpbroker
- $APPDATA/mpbroker
- $HOME/.config/mpbroker
Configure
Notices
- an example
user_config.toml
file can be found in thempbroker/example
directory - if you do not want to use the standard locations and do not want to set a MPB_CONFIG_HOME envvar you can set MPB_CONFIG_HOME on the command line before calling mpb such as
MPB_CONFIG_HOME=/opt/tmp mpb list 'The_Matrix'
)
To set up MPB you need to:
- create your
user_config.toml
file (see above for locations of this file) - configure your user_config.toml file (at a minimum you will need to set/change the
database.db_uri
value) - ensure your mpb database is available
- use the
db-init
command to initialize your db if it is a new instance!
- use the
If you are testing mpb or do not have a database you can use docker-compose to start a local database: docker-compose up
. If you use the local database your database.db_uri
should be http://admin:couchdb@localhost:5984
.
Using MPB
mpb has built in help (mpb --help
) which should give you enough info to get going.
A Quick Start:
- you will likely want to
injest
some media - next you can use
list
to view/find an item to play - finally you can
play
an item
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mpbroker-0.4.0.tar.gz
.
File metadata
- Download URL: mpbroker-0.4.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.4-artix1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 819e952e156dec781403f814beb0f57124e794597da266475ad94fd9db68cf34 |
|
MD5 | 54b83c2a9e6a30193d805c26db378fbb |
|
BLAKE2b-256 | 427c5f5eaebd1f591d40f1c84f2230426866e06fa37614fdb578d37d6500e4d6 |
File details
Details for the file mpbroker-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: mpbroker-0.4.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.4-artix1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99dc8d4b439bfd10c750bb26207e84c60be56c723d4c0a861356f3cc8dc43e13 |
|
MD5 | 62e16428f6bc9338905ad6f3458046a4 |
|
BLAKE2b-256 | 6b4e5cc5824dcd0fc82878e8e91b0ead91631b42d511e095ed783a6cddd7dc3e |