jellyfin / mopidy-jellyfin

Jellyfin Extension for Mopidy
https://jellyfin.org
Apache License 2.0
93 stars 16 forks source link
hacktoberfest jellyfin mopidy

Mopidy-Jellyfin


.. image:: https://img.shields.io/pypi/v/Mopidy-Jellyfin.svg?style=flat :target: https://pypi.python.org/pypi/Mopidy-Jellyfin/ :alt: Latest PyPI version

Mopidy extension for playing audio files from Jellyfin

Notes:

Installation

Install by running::

pip install Mopidy-Jellyfin

Mopidy-Jellyfin has officially moved to Python 3 with the release of Mopidy 3.0 <https://mopidy.com/blog/2019/12/22/mopidy-3.0/>_. All future updates will target this newer version.

Configuration

Before starting Mopidy, you must add configuration for Mopidy-Jellyfin to your Mopidy configuration file::

[jellyfin]
hostname = Jellyfin server hostname
username = username
password = password
user_id = userid (Optional: Needed for token authentication)
token = token (Optional: Use for authentication instead of username and password)
libraries = Library1, Library2 (Optional: will default to "Music" if left undefined)
albumartistsort = False (Optional: will default to True if left undefined)
album_format = {ProductionYear} - {Name} (Optional: will default to "{Name}" if left undefined)
max_bitrate = number

Development

  1. Install mopidy to your host system, preferably using the native package manager. This handles all of the required dependencies.

  2. Clone the repo to your local workstation

    $ git clone git@github.com:jellyfin/mopidy-jellyfin.git && cd mopidy-jellyfin

  3. Set up a virtualenv. We need to include system packages since some things don't behave well inside of a virtualenv (such as PyGObject or interacting with pulseaudio). Note that with the release of Mopidy 3.0 only Python 3.7 or newer is supported.

    $ python -m venv env --system-site-packages

  4. Install mopidy-jellyfin to the virtualenv.

    $ env/bin/python setup.py develop

  5. Do your thing.

    Mopidy can be launched from the virtualenv with env/bin/mopidy

Project resources

Credits