Mopidy extension for playing music from jellyfin
Project description
Mopidy extension for playing audio files from Jellyfin
Notes:
Supports both “Music” and “Book” media types
- Tested using ncmpcpp, M.A.L.P., and various mopidy web frontends <https://docs.mopidy.com/en/latest/ext/web/#ext-web>_.
When using ncmpcpp, it’s recommended to set mpd_connection_timeout = 30, particularly if browsing folders that have a large number of items inside them
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 officially still limited to python 2. There is a prerelease of python 3 support that can be installed for testing purposes. More information can be found here
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
Install mopidy to your host system, preferably using the native package manager. This handles all of the required dependencies.
Clone the repo to your local workstation
$ git clone git@github.com:jellyfin/mopidy-jellyfin.git && cd mopidy-jellyfin
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
Install mopidy-jellyfin to the virtualenv.
$ env/bin/python setup.py develop`
Do your thing.
Project resources
Credits
Current maintainer: Matt Carlton
Original author: Marvin Steadfast
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.