Commit Graph

3189 Commits

Author SHA1 Message Date
Stein Magnus Jodal
252f4792a0 core: Check if library is browsable at startup 2014-01-03 23:12:03 +01:00
Stein Magnus Jodal
69836d2e16 backend: Rename library.name to library.root_directory_name 2014-01-03 23:10:02 +01:00
Stein Magnus Jodal
af3b0e40fd models: Add Ref.type constants 2014-01-03 22:19:54 +01:00
Stein Magnus Jodal
048c3bb544 core: Use library name instead of URI scheme in browse() 2014-01-02 23:10:15 +01:00
Stein Magnus Jodal
7dba0dafa5 mpd: Include dirs and files in lsinfo response 2014-01-02 22:06:33 +01:00
Stein Magnus Jodal
6027ed1fac core: Add library.browse() 2014-01-02 22:06:33 +01:00
Stein Magnus Jodal
a3731c8187 backend: Add library.browse() 2014-01-02 22:06:32 +01:00
Stein Magnus Jodal
0fb7c79524 log: Use loggers named after __name__ 2014-01-01 13:31:20 +01:00
Stein Magnus Jodal
4b9ab5fcbc Remove empty "frontends" packages 2013-12-31 14:14:19 +01:00
Stein Magnus Jodal
1ee534126e mpd: Move mopidy.{frontends => }.mpd 2013-12-31 14:11:16 +01:00
Stein Magnus Jodal
621aff22c9 http: Move mopidy.{frontends => }.http 2013-12-31 14:04:25 +01:00
Stein Magnus Jodal
d3dcceefc5 models: Add description of Ref model 2013-12-29 21:08:46 +01:00
Stein Magnus Jodal
e87d5729e3 models: Add lightweight Ref model with URI, name, and type 2013-12-29 19:31:14 +01:00
Stein Magnus Jodal
12d473ced6 zeroconf: Make public API with docs 2013-12-29 15:38:20 +01:00
Stein Magnus Jodal
413d539a7b py3: Use print() function 2013-12-28 19:23:04 +01:00
Thomas Adamcik
279618fcde commands: Remove print statement 2013-12-19 23:42:33 +01:00
Thomas Adamcik
89638e55d6 flags: use $XDG_CONFIG_DIRS and $XDG_CONFIG_HOME as defaults
This does not add support for '$XDG_CONFIG_DIRS' expansion, it just makes the
default include what it is set to.
2013-12-19 22:10:12 +01:00
Stein Magnus Jodal
3859448e06 core: Test version property, fix typo in changelog 2013-12-15 22:49:33 +01:00
Stein Magnus Jodal
77dd40b3d0 Merge remote-tracking branch 'kingosticks/feature/expose-version-to-api' into develop 2013-12-15 22:45:49 +01:00
Stein Magnus Jodal
b0b2e37950 docs: Include API docs for the Core class 2013-12-15 21:41:00 +01:00
kingosticks
9f93fbaa36 property for get_version and documented 2013-12-15 20:37:41 +00:00
kingosticks
e1bb03789b expose mopidy version to core API 2013-12-15 18:50:05 +00:00
Thomas Adamcik
0fac8120d4 streaming: Code review adjustments 2013-12-06 00:04:36 +01:00
Thomas Adamcik
d9b704d0d8 streaming: Add scanner lookup of stream metadata.
This adds support for looking up metada for all any any protocols the streaming
backend will support. This should also ensure that file:// files get metadata.
2013-12-05 22:58:48 +01:00
Thomas Adamcik
1379c38370 audio: Improve audio_data_to_track handling.
- Handle missing or none data for duration and mtime
- Add organization, location and copyright mapping used for streams.
2013-12-05 22:56:19 +01:00
Thomas Adamcik
a036e84a20 audio: Update scanner to not use gst.Bus.poll
Turns out poll sets up it's own mainloop in the default context causing us to
segfault.
2013-12-05 22:43:27 +01:00
Thomas Adamcik
10a448f90d audio: Cleanup scanner code and support live sources
- Make attributes internal with _ naming
- Cleanup handling of min durtion. Min set to None disables the check.
- Check state change result for no preroll which indicates a live source which
  must transistion to playing to get tags etc.
2013-12-04 23:41:39 +01:00
Stein Magnus Jodal
07784ed058 Merge branch 'develop' into feature/local-json 2013-12-04 23:27:21 +01:00
Stein Magnus Jodal
14ee030dad config: Formatting 2013-12-04 23:08:21 +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
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
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
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
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
f383e9ad48 mpd: Format multiline patterns properly, second try 2013-11-23 21:47:11 +01:00