Merge branch 'release-1.1' into develop

This commit is contained in:
Stein Magnus Jodal 2015-10-06 11:49:37 +02:00
commit 8dabdd7287
4 changed files with 25 additions and 3 deletions

View File

@ -14,6 +14,9 @@ Bug fix release.
example Ogg Vorbis has the MIME type ``application/ogg``. (Fixes: example Ogg Vorbis has the MIME type ``application/ogg``. (Fixes:
:issue:`1299`) :issue:`1299`)
- Local: If the scan or clear commands are used on a library that does not
exist, exit with an error. (Fixes: :issue:`1298`)
v1.2.0 (UNRELEASED) v1.2.0 (UNRELEASED)
=================== ===================

View File

@ -111,7 +111,7 @@ To start the music server, run::
mopidy mopidy
To start the server with an additional config file than can override configs To start the server with an additional config file, that can override configs
set in the default config files, run:: set in the default config files, run::
mopidy --config ./my-config.conf mopidy --config ./my-config.conf

View File

@ -145,6 +145,20 @@ To install, run::
pip install Mopidy-Party pip install Mopidy-Party
Mopidy-Party
============
https://github.com/Lesterpig/mopidy-party
Minimal web client designed for collaborative music management during parties.
.. image:: /ext/mopidy_party.png
To install, run::
pip install Mopidy-Party
Mopidy-Simple-Webclient Mopidy-Simple-Webclient
======================= =======================

View File

@ -21,8 +21,8 @@ def _get_library(args, config):
library_name = config['local']['library'] library_name = config['local']['library']
if library_name not in libraries: if library_name not in libraries:
logger.warning('Local library %s not found', library_name) logger.error('Local library %s not found', library_name)
return 1 return None
logger.debug('Using %s as the local library', library_name) logger.debug('Using %s as the local library', library_name)
return libraries[library_name](config) return libraries[library_name](config)
@ -41,6 +41,9 @@ class ClearCommand(commands.Command):
def run(self, args, config): def run(self, args, config):
library = _get_library(args, config) library = _get_library(args, config)
if library is None:
return 1
prompt = '\nAre you sure you want to clear the library? [y/N] ' prompt = '\nAre you sure you want to clear the library? [y/N] '
if compat.input(prompt).lower() != 'y': if compat.input(prompt).lower() != 'y':
@ -76,6 +79,8 @@ class ScanCommand(commands.Command):
bytes(file_ext.lower()) for file_ext in excluded_file_extensions) bytes(file_ext.lower()) for file_ext in excluded_file_extensions)
library = _get_library(args, config) library = _get_library(args, config)
if library is None:
return 1
file_mtimes, file_errors = path.find_mtimes( file_mtimes, file_errors = path.find_mtimes(
media_dir, follow=config['local']['scan_follow_symlinks']) media_dir, follow=config['local']['scan_follow_symlinks'])