Thomas Adamcik
3945e437de
docs: Fix minor doc issues found during review
...
- Adds autodoc for mopidy.audio.scan
- Updates ``file://`` to ``local:``
- Minor language fix.
2013-11-09 13:30:27 +01:00
Thomas Adamcik
1a3ff456f9
scanner: Remove old scanner in favour of sub-commands
2013-11-08 23:21:26 +01:00
Thomas Adamcik
b5f8480eea
local: Add 'mopidy scan' command via extension sub-commands.
2013-11-08 23:20:19 +01:00
Thomas Adamcik
2581062ae0
ext/backends: Add extensions to sub commands run
2013-11-08 23:18:26 +01:00
Thomas Adamcik
ef10c2e178
main: Wire in actual execution of sub-commands.
2013-11-08 22:04:26 +01:00
Thomas Adamcik
518cac5eab
ext/backends: Add get_sub_commands and BaseSubCommandProvider
2013-11-08 22:01:18 +01:00
Thomas Adamcik
7144876dc5
main: Move default subparsers into commands module
...
Also switches to using dest for storing the chosen sub-parser.
2013-11-08 22:01:18 +01:00
Thomas Adamcik
25fedc7700
loggin: Add DelayedHandler to root logger.
...
The delayed handler:
- Accepts and buffers logs until they are released.
- Upon release the logs are re-posted to the root logger.
- After release log records are ignored.
This allows us to avoid the silly tricks we've been doing with parsing args and
config early for the sake of bootstraping logging. Now we can just start
logging and once the logging has been setup the messages are released and
handled according to the correct settings.
2013-11-08 19:53:00 +01:00
Thomas Adamcik
4f03677675
main: Improve main bootstrapping sequence
...
- Parses args in two pases to allow for setup of logging well before doing
extension sub-commands.
2013-11-08 19:53:00 +01:00
Thomas Adamcik
9539c2ac35
main: Switch to subcommands
...
- show-deps replaced with 'mopidy deps'
- show-config replaced with 'mopidy config'
- Just running mopidy now displays help, run 'mopidy run' to start server.
2013-11-08 19:53:00 +01:00
Thomas Adamcik
f49973304c
main: Start unifying command handling
...
- Removes show_deps and show_config from commands module. These
are now handled directly in the main() method pending subcommands.
- Unifies show_config with general main() config handling.
- Sets default verbosity level to zero.
- Reduce verbosity when --show-config or --show-deps is called.
- Update console logging to consider verbosity < 0 quiet/
2013-11-08 01:17:52 +01:00
Thomas Adamcik
51b778fcd6
main: Create helper for logging boostraping
2013-11-08 00:59:05 +01:00
Thomas Adamcik
bdba83b1be
main: Move argparse building to a function.
2013-11-08 00:09:17 +01:00
Thomas Adamcik
86926e8011
scanner: Remove unused argument for progress helper.
2013-11-06 21:14:11 +01:00
Thomas Adamcik
dc3cf427b6
scanner/mpd: Add TODOs for later and fix flake8 warning
2013-11-06 19:19:17 +01:00
Thomas Adamcik
e6381a1a0a
audio: Add mtime to scanner results for file: uris
2013-11-06 19:10:49 +01:00
Thomas Adamcik
469f414c4c
audio: Don't do duration conversion to ms in scanner
2013-11-06 19:10:49 +01:00
Thomas Adamcik
16ac5277f6
audio: Make min duration in scanner configurable.
2013-11-06 19:10:49 +01:00
Thomas Adamcik
20b0602842
audio/scanner: Move translator into audio.
...
Tries to move more of the gst bits and pieces we are leaking into audio.
2013-11-06 19:10:49 +01:00
Thomas Adamcik
4cadba0ac7
scanner: Add progress tracking and process sorted uris
2013-11-06 19:10:49 +01:00
Thomas Adamcik
0a2d74eff1
scanner: Update to use new mopidy.audio.scan
...
Also adds the check less than 100ms check back to the scanner.
2013-11-06 19:10:49 +01:00
Thomas Adamcik
d6ab78a86c
audio: Re-add improved version of python based scanner.
...
- Unlike the old python version we do not wait for the first audio handoff, we
only progress until the PAUSED state. This ensure we don't block on empty files.
- Instead of using the signal watch and running the main loop we simply poll
the messages from the bus directly allowing for a synchronous code flow.
- Between each file the pipeline is always returned to NULL, this is done as we
found that gst 0.10 will slow down as the uribin does not cleanup the
children it creates for handling each file. This issue is not present in 1.0.
- This also works around a segfault that was likely caused by a race condition
that seems to trigger in the 0.10 version of the pbutils discoverer.
- This version of the scanner also fixes the per track slow down, and works out
to be considerably faster than even the built in discoverer from 1.0.
- Finally this removes the WMA hack as I kan no longer find any evidence of it
being needed.
2013-11-06 19:10:49 +01:00
Lasse Bigum
7339d4839c
Update filter name to match track_name change
2013-11-02 22:34:54 +01:00
Lasse Bigum
9593da08b6
Rename track in MPD to track_name to avoid confusion
2013-11-02 22:34:26 +01:00
Lasse Bigum
24944bd8e3
Split artist and albumartist dependency, update tests based on this
2013-11-02 22:13:54 +01:00
Stein Magnus Jodal
0df84b85d0
mpd: Check if track.album exists before using it
2013-11-02 22:00:35 +01:00
Lasse Bigum
86f18935fe
Fix flake8 errors and add a few more tests
2013-11-02 21:57:53 +01:00
Lasse Bigum
7c414d4abc
Support 'list albumartist'
2013-11-02 21:57:53 +01:00
Lasse Bigum
e7746dac1b
Remove debug, make track_no more robust
2013-11-02 21:54:46 +01:00
Lasse Bigum
efc9fc75b5
Fix track_no
2013-11-02 21:49:44 +01:00
Stein Magnus Jodal
04d9fa667b
deps: Don't strip last dir from dependency path
2013-11-02 19:25:06 +01:00
Stein Magnus Jodal
152c8aa9c5
docs: Fix syntax error
2013-10-28 20:09:42 +01:00
Stein Magnus Jodal
c3a9bc06ed
Bump version for development
2013-10-27 22:44:10 +01:00
Stein Magnus Jodal
40674ae052
Bump version to 0.16.0
2013-10-27 22:34:54 +01:00
Thomas Adamcik
b36bf007c0
Merge pull request #551 from jodal/feature/mpd-search-by-albumartist
...
Add search and find by albumartist to MPD frontend
2013-10-27 13:39:31 -07:00
Stein Magnus Jodal
15554ea062
Merge pull request #550 from adamcik/fix/bug-516-blacklist-extensions-in-scanner
...
local: Add file ext blacklist (fixes #516 ).
2013-10-27 13:36:32 -07:00
Stein Magnus Jodal
9064fc02fd
Merge branch 'develop' into feature/mpd-search-by-albumartist
...
Conflicts:
mopidy/frontends/mpd/protocol/music_db.py
mopidy/frontends/mpd/translator.py
2013-10-27 21:30:58 +01:00
Thomas Adamcik
3884da2d7e
local: Rename scan_blacklist_extensions to excluded_file_extensions
2013-10-27 21:27:11 +01:00
Stein Magnus Jodal
f0aff669c6
local: Order search filters consistently
2013-10-27 21:26:07 +01:00
Stein Magnus Jodal
4a9552fc15
local: Bring the corner case close to the condition
2013-10-27 21:25:36 +01:00
Stein Magnus Jodal
d13d9958b0
mpd: Formatting
2013-10-27 21:22:57 +01:00
Stein Magnus Jodal
70801c2481
mpd: Fix import order
2013-10-27 21:22:34 +01:00
Stein Magnus Jodal
f7e85b1f12
Merge branch 'develop' into feature/track_and_count
2013-10-27 21:04:09 +01:00
Stein Magnus Jodal
38bbaeee18
mpd: Review fixes
2013-10-27 20:59:46 +01:00
Stein Magnus Jodal
f9c09a8990
Merge pull request #548 from adamcik/feature/write-config
...
Prep work for adding a `mopidy config --set ...` type command.
2013-10-27 12:52:46 -07:00
Stein Magnus Jodal
24a2b08fc5
mpd: Don't return fake artists when searching by albumartist
2013-10-27 20:24:07 +01:00
Stein Magnus Jodal
6af0ace8ac
mpd: Map 'albumartist' field from MPD to Mopidy query
2013-10-27 20:23:26 +01:00
Stein Magnus Jodal
dabddd81fd
mpd: Accept 'albumartist' type to 'find' and 'search' commands
2013-10-27 20:22:45 +01:00
Stein Magnus Jodal
d822724426
mpd: Format search query regexps better
2013-10-27 20:08:44 +01:00
Stein Magnus Jodal
7d23302737
mpd: Remove Python 2.6-ism
2013-10-27 20:08:44 +01:00