Commit Graph

18 Commits

Author SHA1 Message Date
Thomas Adamcik
e880cb56b5 local: Re-add progress helper and log flushes.
Refactored the progress helper to be used in batching flushes in addition to
logging.
2013-12-31 15:09:54 +01:00
Thomas Adamcik
63a8375429 local: Review comments and library interface update.
Added return value to flush so we can log what is being done.
2013-12-31 14:57:54 +01:00
Thomas Adamcik
f5430f4a7f local: Move --clear to it's own sub-command.
Split library setup out into a helper and move the clear option to a command.
2013-12-30 21:47:02 +01:00
Thomas Adamcik
a462f132d3 local: Add --limit to scanner. 2013-12-30 01:43:11 +01:00
Thomas Adamcik
82877ec60f local: Add --clear flag to scanner. 2013-12-30 01:40:47 +01:00
Thomas Adamcik
09c0ae2551 local: Add flush threshold to scanner.
Instead of triggering every 1000th query, this is now configurable and also
triggers the flush call to the library.
2013-12-30 01:31:00 +01:00
Thomas Adamcik
36e9b43e6c local: Update local library interface.
Refactored interface to incorperate lessons learned so far trying to implemend
a whoosh based local library.

Search now has a limit and an offset to account for fact that we need to start
doing pagination of results properly. Updates now have begin, flush and close
calls. Additionally I've added clear method to allow for easily nuking the data
store.
2013-12-30 01:17:33 +01:00
Thomas Adamcik
0f671516ed local: Make sure excluded file extension case does not error out 2013-12-28 00:00:10 +01:00
Thomas Adamcik
ba642aa680 local: Update scanner to use new library interface. 2013-12-24 00:57:57 +01:00
Thomas Adamcik
8a94d81c42 ext: Move away from global registry to ease testing.
Extension's setup method are now passed the active registry allowing them to
"steal" a list of the registry items they care about. In the case of commands
the registry is passed via args.registry.
2013-12-23 21:46:24 +01:00
Thomas Adamcik
decce4ccf6 ext: Add basic global registry and switch to Extension.setup() 2013-12-22 15:11:15 +01:00
Thomas Adamcik
0d7fea0a43 ext: Convert commands to use new registry system.
Creates a placeholder registry using the existing hooks, and updates the
commands to use these. The actual registry still needs to be created.
2013-12-22 15:11:15 +01:00
Thomas Adamcik
3bbcb4d121 local: Review comment fixes 2013-11-28 23:20:03 +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
087dc5065d local: Remove argument that was simply added for testing help formatting 2013-11-16 03:13:22 +01:00
Thomas Adamcik
ea28e91f63 Merge branch 'develop' into feature/subcommands
Conflicts:
	mopidy/scanner.py
2013-11-16 03:08:38 +01:00
Thomas Adamcik
03c301705d commands: Move mopidy.utils.command to mopidy.commands
- Also adds documenation to Command class.
- Moves scan command to commands to match naming.
2013-11-16 03:02:45 +01:00