Skip to main content

Mopidy extension for playing music from your local music archive

Project description

Latest PyPI version CI build status Test coverage

Mopidy extension for playing music from your local music archive.

Table of contents

Maintainer wanted

Mopidy-Local is currently kept on life support by the Mopidy core developers. It is in need of a more dedicated maintainer.

If you want to be the maintainer of Mopidy-Local, please:

  1. Make 2-3 good pull requests improving any part of the project.

  2. Read and get familiar with all of the project’s open issues.

  3. Send a pull request removing this section and adding yourself as the “Current maintainer” in the “Credits” section below. In the pull request description, please refer to the previous pull requests and state that you’ve familiarized yourself with the open issues.

    As a maintainer, you’ll be given push access to the repo and the authority to make releases to PyPI when you see fit.

Installation

Install by running:

sudo python3 -m pip install Mopidy-Local

See https://mopidy.com/ext/local/ for alternative installation methods.

Configuration

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

[local]
media_dir = /path/to/your/music/archive

The following configuration values are available:

  • local/enabled: If the local extension should be enabled or not. Defaults to true.

  • local/media_dir: Path to directory with local media files.

  • local/max_search_results: Number of search results that should be returned. Default is 100.

  • local/scan_timeout: Number of milliseconds before giving up scanning a file and moving on to the next file.

  • local/scan_follow_symlinks: If we should follow symlinks found in local/media_dir.

  • local/scan_flush_threshold: Number of tracks to wait before telling library it should try and store its progress so far. Some libraries might not respect this setting. Set this to zero to disable flushing.

  • local/included_file_extensions: File extensions to include when scanning the media directory. Values should be separated by either comma or newline. Each file extension should start with a dot, .e.g. .flac. Setting any values here will override the existence of local/excluded_file_extensions.

  • local/excluded_file_extensions: File extensions to exclude when scanning the media directory. Values should be separated by either comma or newline. Each file extension should start with a dot, .e.g. .html. Defaults to a list of common non-audio file extensions often found in music collections. This config value has no effect if local/included_file_extensions is set.

  • local/directories: List of top-level directory names and URIs for browsing.

  • local/timeout: Database connection timeout in seconds.

  • local/use_artist_sortname: Whether to use the sortname field for ordering artist browse results. Disabled by default, since this may give confusing results if not all artists in the library have proper sortnames.

  • local/album_art_files: List of file names to check for when searching for external album art. These may contain UNIX shell patterns, i.e. *, ?, etc.

Usage

Generating a library

The command mopidy local scan will scan the path set in the local/media_dir config value for any audio files and build a library of metadata.

To make a local library for your music available for Mopidy:

  1. Ensure that the local/media_dir config value points to where your music is located. Check the current setting by running:

    mopidy config
  2. Scan your media library.:

    mopidy local scan
  3. Start Mopidy, find the music library in a client, and play some local music!

Updating the library

When you’ve added or removed music in your collection and want to update Mopidy’s index of your local library, you need to rescan:

mopidy local scan

Options can be specified to control the behavior of the scan command:

  • --force Force rescan of all media files

  • --limit <number> Maximum number of tracks to scan

Example:

mopidy local scan --limit 50

Clearing the library

To delete your local images and clear your local library:

mopidy local clear

A prompt will ask you to confirm this irreversible operation.

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-Local-3.2.1.tar.gz (38.2 kB view details)

Uploaded Source

Built Distribution

Mopidy_Local-3.2.1-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

Details for the file Mopidy-Local-3.2.1.tar.gz.

File metadata

  • Download URL: Mopidy-Local-3.2.1.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.8

File hashes

Hashes for Mopidy-Local-3.2.1.tar.gz
Algorithm Hash digest
SHA256 29165157134fe869228da675e4d0083888368a29dc7dd3203fe1a27d7b4d83a3
MD5 b4fc766395456dc7243dba0e4d88d458
BLAKE2b-256 06c35426543db3a53285ab1e45ad5e3ca261a41db20838ce68038c4ee0f7d41d

See more details on using hashes here.

File details

Details for the file Mopidy_Local-3.2.1-py3-none-any.whl.

File metadata

  • Download URL: Mopidy_Local-3.2.1-py3-none-any.whl
  • Upload date:
  • Size: 30.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.8

File hashes

Hashes for Mopidy_Local-3.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20e142397664d4348a0868e255d1b6e55fffd6c507fc2afda2314a4de885b38d
MD5 2074c399ad03f72d5efec21a33a7b1ea
BLAKE2b-256 b5c7224d579de5f93873a92a501d63b58c897d7135becafb69173ef0dba9440c

See more details on using hashes here.

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