Thomas Adamcik
acdc65e9c7
docs: Update changelog with pluggable libraries.
2013-12-04 23:04:30 +01:00
Thomas Adamcik
9794826f26
local: Review changes
2013-12-04 22:52:24 +01:00
Thomas Adamcik
4f7176cac8
local: Cleanup uri conversion helper naming and implementation.
2013-12-04 22:48:37 +01:00
Thomas Adamcik
ad53a067ae
local: Split out library reading and writting
...
- Create $XDG_DATA_DIR/mopidy/local in the local extension's validate env.
- Make sure we handle bad data causing ValueError in JSON decoding
- Initializing empty file causes more harm than good as it just leads to a
ValueError. Switched to doing write_library(json_file, {})
- Helpers have been updated to be library oriented, not track. This paves the
way for having {tracks: {uri: ...}, artist: {uri: ...}, ...} type
denormalized data.
2013-12-04 22:38:16 +01:00
Thomas Adamcik
9c2d38e989
local: Remove tag cache support
...
- Updates doc references to tag cache
- Removes tag cache from config and marks it deprecated
- Removes tag cache from setup.py
- Removes tag cache from config converter
- Removes tag cache from tests
- Converts local library tests to use JSON.
2013-12-04 22:38:16 +01:00
Thomas Adamcik
da63942b48
config: Improve handling of Deprecated config values
2013-12-04 22:38:16 +01:00
Stein Magnus Jodal
2a2d725804
docs: Add Moped client, update other web clients
2013-12-04 22:31:41 +01:00
Stein Magnus Jodal
81e437ae70
docs: Document value separation in config values with lists
2013-12-03 19:07:25 +01:00
Thomas Adamcik
26ec956a08
config: Add deprecated config value support.
...
This makes it possible to mark a key as deprecated, this implies it will be
ignored if present, and never included in the resulting config.
2013-11-29 00:15:03 +01:00
Thomas Adamcik
121d2c782a
docs: Add info about local-json and pluggable libraries
2013-11-28 23:42:12 +01:00
Thomas Adamcik
3bbcb4d121
local: Review comment fixes
2013-11-28 23:20:03 +01:00
Thomas Adamcik
118095e522
local: Add new json based library
...
- Sets local-tagcache as disabled
- Implements new library that uses a gzip compressed json as storage.
- Thanks to reuse of existing serialization code this is a fairly small change.
2013-11-27 23:39:53 +01:00
Thomas Adamcik
ca358e05db
local: Move find_exact and search out of tag cache.
2013-11-27 23:27:31 +01:00
Thomas Adamcik
4161c2bf27
local: Fix inconsistent uri handling in local scanner
...
We now only operate on local track uris, instead of a funny mix of local and
file uris. To achieve this we instead maintain a uri->path mapping to use for
the actual scanning.
2013-11-27 23:19:10 +01:00
Thomas Adamcik
603b57ef3c
utils: Remove find_uris and update find_files
...
- find_uris is no more
- find_files now returns file paths relative to path being searched
- find_files now only works on directories
- find_files tests have been updated to reflect changes
- local scanner has gotten a minimal update to reflect this alteration
2013-11-27 22:50:35 +01:00
Thomas Adamcik
c025b87076
tagcache: Split out to own extension for eventual deletion.
2013-11-27 00:04:51 +01:00
Thomas Adamcik
3c1c6bac71
local: Always return track with just uri for local playlist tracks
...
This is related to #527 , but is only a stop gap until we fix it right. Note
that this actually causes a regression, as not playlist tracks will have any
metadata after this change.
2013-11-27 00:04:51 +01:00
Thomas Adamcik
04044d035f
core: Refactor core Backends helper
...
Replaces the jungle of extra dicts/lists with an OrderedDict per backend
feature type. Also makes sure that each type/scheme is unique instead of
the scheme alone.
2013-11-27 00:04:51 +01:00
Thomas Adamcik
76ca38dd63
main: Only log creation of config when file does not exist.
2013-11-26 23:22:15 +01:00
Stein Magnus Jodal
2baa00b3a8
docs: Update changelog
2013-11-26 21:16:18 +01:00
Thomas Adamcik
ff9f473c2f
local: Move tag cache translators and tests out.
2013-11-26 17:47:52 +01:00
Thomas Adamcik
03f5ff6f57
local: Start moving tag cache code out of main local
2013-11-26 17:15:26 +01:00
Thomas Adamcik
2d13734dfc
logging: Remove use of root logger
2013-11-26 16:42:04 +01:00
Stein Magnus Jodal
eebfef5a6c
Merge pull request #594 from adamcik/feature/async-listeners
...
listeners: Make listeners async
2013-11-26 07:17:31 -08:00
Thomas Adamcik
9e1d46a661
listeners: Import grouping fix
2013-11-26 16:04:21 +01:00
Thomas Adamcik
c128668621
listeners: Make listeners async
...
- Add a common Listener base class
- Make send helper for sending out events with pykka
- Make send async helper for avoiding blocking events
This change ensures all the events now get sent out via the MainThread instead
of blocking the actors.
2013-11-26 15:10:48 +01:00
Stein Magnus Jodal
c3d6234a5e
Merge branch 'master' into develop
2013-11-23 21:50:36 +01:00
Stein Magnus Jodal
54caa95fb4
mpd: Format multiline patterns properly, second try
...
(cherry picked from commit f383e9ad48 )
2013-11-23 21:50:04 +01:00
Stein Magnus Jodal
55afa18672
docs: Fix reference
...
(cherry picked from commit 13fb2bf604 )
2013-11-23 21:49:58 +01:00
Stein Magnus Jodal
abc6cc7ac6
mpd: Format multiline patterns properly in docs
...
(cherry picked from commit e2b36cb0f0 )
2013-11-23 21:49:50 +01:00
Stein Magnus Jodal
f383e9ad48
mpd: Format multiline patterns properly, second try
2013-11-23 21:47:11 +01:00
Stein Magnus Jodal
13fb2bf604
docs: Fix reference
2013-11-23 21:40:05 +01:00
Stein Magnus Jodal
e2b36cb0f0
mpd: Format multiline patterns properly in docs
2013-11-23 21:39:18 +01:00
Stein Magnus Jodal
972056643f
docs: Use twine for uploading sdist/bdist_wheel
2013-11-23 21:31:20 +01:00
Stein Magnus Jodal
c6ca88fdfc
setup: Fix capitalization of CherryPy package
2013-11-23 21:27:33 +01:00
Stein Magnus Jodal
2b7bc870cf
Release v0.17.0
2013-11-23 20:23:06 +01:00
Stein Magnus Jodal
3dc4ab4921
Bump version to 0.17.0
2013-11-23 20:22:27 +01:00
Stein Magnus Jodal
519002dd93
docs: Update changelog for v0.17.0
2013-11-23 20:22:00 +01:00
Stein Magnus Jodal
eaf6e51ed7
docs: Update changelog
2013-11-23 08:30:18 +01:00
Stein Magnus Jodal
933b2b336f
Merge pull request #588 from adamcik/feature/config-defaults
...
Initialize config with commented out defaults.
2013-11-22 22:56:01 -08:00
Thomas Adamcik
774e629425
config: Fix review comments.
2013-11-23 07:18:57 +01:00
Thomas Adamcik
7dbabd1960
config: Initialize config with defaults
...
Try and create args.config_file[-1] with the default config commented out.
We assume that the directory the config file is in exists.
2013-11-22 07:17:02 +01:00
Thomas Adamcik
b22d7bee0b
utils: Add mkdir and content options to get_or_create_file
...
This lets callers control is parent directories are created, and set the
default content of the file.
2013-11-22 07:17:02 +01:00
Thomas Adamcik
17a1336e5c
config: Add format_initial helper to populate empty configs.
2013-11-22 07:17:02 +01:00
Thomas Adamcik
bd1ee7ff39
config: Add support for formating with commented out defaults
...
- Changes inline comments to ; for configparser conformance
2013-11-22 07:17:01 +01:00
Stein Magnus Jodal
9ca222ed39
dbus: Skip mainloop setup if dbus isn't installed
2013-11-20 23:14:08 +01:00
Stein Magnus Jodal
6cae0ddfe9
Revert "travis: Manually install python-dbus"
...
This reverts commit 16a76d4ea5 .
2013-11-20 23:13:39 +01:00
Stein Magnus Jodal
8ea996de13
Revert "tests: Don't redefine PYTHONPATH"
...
This reverts commit 6be5cc0f1b .
2013-11-20 23:13:31 +01:00
Stein Magnus Jodal
16a76d4ea5
travis: Manually install python-dbus
...
Now used by GObject eventloop registration, Zeroconf integration, and keyring
integration.
2013-11-20 22:53:23 +01:00
Stein Magnus Jodal
6be5cc0f1b
tests: Don't redefine PYTHONPATH
...
Shot in the dark to get Travis to find dbus-python when running the `mopidy`
command as a subprocess of the tests.
2013-11-20 22:40:12 +01:00