Skip to main content

Mopidy extension for playing music from jellyfin

Project description

Latest PyPI version

Mopidy extension for playing audio files from Jellyfin

Notes:

  • Currently only supports the “Music” media type

  • Tested using ncmpcpp and M.A.L.P.
    • There is some inconsistency in M.A.L.P. where you may have to go to the menu and select ‘Show All Tracks’ for the library to populate properly

  • MPDroid on Android does not work properly

Installation

Install by running:

pip2 install Mopidy-Jellyfin

Note that mopidy is still limited to python 2

Configuration

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

[jellyfin]
hostname = Jellyfin server hostname
port = Jellyfin server port
username = username
password = password
libraries = Library1, Library2 (Optional: will default to "Music" if left undefined)

The libraries option determines what is populated into Mopidy’s internal library (view by Artists/Album/etc). Using the file browser will show all libraries in the Jellyfin server that have a ‘music’ type.

It’s also possible to add a hidden user by adding user_id = $id_number in addition to the username. The user_id can be found through the web UI by navigating to your profile in the Web client and looking at the URL: https://jellyfin.example.com/web/index.html#!/myprofile.html?userId=3920b99003194448a2a9d4f0bedd3d82

In this example, the config file will look like this:

[jellyfin]
hostname = Jellyfin server hostname
port = Jellyfin server port
username = username
password = password
user_id = 3920b99003194448a2a9d4f0bedd3d82
libraries = Library1, Library2 (Optional: will default to "Music" if left undefined)

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

  1. 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).

    $ virtualenv --python python2.7 --system-site-packages env

  2. Install mopidy-jellyfin to the virtualenv.

    $ env/bin/python setup.py develop`

  3. Do your thing.

Project resources

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Mopidy-Jellyfin-0.5.5.tar.gz (21.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page