Commit Graph

195 Commits

Author SHA1 Message Date
Thomas Adamcik
37ba3ca01d Merge branch 'develop' into feature/commands-helper-tmp
Conflicts:
	mopidy/utils/log.py
2013-11-14 23:36:27 +01:00
Thomas Adamcik
5f5c6a841c ext/backend: Use utils.command directly.
Commands don't "belong" to backends or frontends so just leave it at an ext
level and start using mopidy.utils.command directly.
2013-11-14 23:34:06 +01:00
Thomas Adamcik
a6c3b78a6f local: Convert local scanning to new commands.
Also moves mopidy.backends.local.scan to .command
2013-11-14 23:32:55 +01:00
Thomas Adamcik
d839a0d1ba local: Fix flake mistakes in scan sub-command. 2013-11-10 13:03:53 +01:00
Thomas Adamcik
4e6ebbe955 local/docs: Update based on review comments
- Bunch of typos and wording improvements from review.
- Fixed mopidy.backends.local.scan botched merge.
- Document and enforce that sub-command name needs to be bytes.
2013-11-09 18:20:22 +01:00
Thomas Adamcik
df953ea1e6 Merge branch 'develop' into feature/subcommands
Conflicts:
	mopidy/scanner.py
2013-11-09 13:40:47 +01:00
Lasse Bigum
8b7621c3e3 Merge branch 'develop' of https://github.com/mopidy/mopidy into feature/extra_tags 2013-11-09 02:37:44 +01:00
Thomas Adamcik
b5f8480eea local: Add 'mopidy scan' command via extension sub-commands. 2013-11-08 23:20:19 +01:00
Thomas Adamcik
93918cb1e0 local: flake8 fixes 2013-11-07 23:25:55 +01:00
Thomas Adamcik
e7dd7e2677 local/scanner: Make checking mtime and skipping known files work again
This change just patches over the worst of the inconsistencies in how the
scanner mixes local and file uris to get us to a working state again. Ideally,
this still needs a real cleanup when we finish the plugable library providers
and/or json library work.
2013-11-07 00:03:00 +01:00
Thomas Adamcik
f8dedc0b84 local: Add local_to_file_uri translator 2013-11-06 21:46:41 +01:00
Lasse Bigum
a516d2051d Added a ton of extra tests and expanded a few to include new tags 2013-11-03 01:01:42 +01:00
Lasse Bigum
e12a75c880 Merge branch 'develop' of https://github.com/mopidy/mopidy into feature/extra_tags 2013-11-02 23:39:19 +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
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
Lasse Bigum
df1820f0a7 Add genre, composer, and performer tags and use them 2013-11-02 02:29:37 +01: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
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
f7e85b1f12 Merge branch 'develop' into feature/track_and_count 2013-10-27 21:04:09 +01:00
Thomas Adamcik
3a1d4db227 local: Add file ext blacklist (fixes #516).
Adds a new local/scan_blacklist_extensions config value for controlling file
extensions to ignore.
2013-10-27 14:26:06 +01:00
Thomas Adamcik
ecc0bae344 local: Delete uris in library refresh (fixes #500)
Makes sure we remove uri's that can no longer be found in the tag cache.
2013-10-27 14:10:56 +01:00
Stein Magnus Jodal
b0ae7d3c6f local: Fix crash on non-ASCII chars in URIs 2013-10-24 23:22:01 +02:00
Lasse Bigum
6028d6766d Fix tabs->spaces and extra ')' 2013-10-20 23:35:31 +02:00
Lasse Bigum
1975694d08 Changed track to track_no, fix code, add tests
Added testcases for track and count
2013-10-20 23:04:48 +02:00
Lasse Bigum
df32e7fcd0 Error checking before type-cast 2013-10-20 23:04:48 +02:00
Lasse Bigum
35a31d3d27 Add support for 'count ..' and 'find .. track X' 2013-10-20 23:04:48 +02:00
Stein Magnus Jodal
96008ca826 Merge pull request #539 from adamcik/fix/bug-527-temp-workaround
local: Temporary workaround for issue #527
2013-10-20 07:31:55 -07:00
Thomas Adamcik
fcd3e5d5cf local: Add test for fallback handling of unknown track uris in playlists
- Checks that adding a non local:track:... uri to a playlist and reading it
  back works.
- Also fixes mistake in API usage where we assumed lookup still raised
  LookupError.
2013-10-20 16:18:03 +02:00
Thomas Adamcik
0f6176a3b4 local: Temporary workaround for issue #527
Adds a fallback to `Track(uri=uri` when track lookup fails for playlists. This
means we can at least load metadata less tracks giving users functioning
playlists, instead of only supporting `local:track:...` style URIs.

Issue is not fixed, but this is sufficient to reduce priority until we get to
the larger planed refactor for this and other core API issues.
2013-10-20 13:26:38 +02:00
Thomas Adamcik
a5a55952fb scanner: Switch to gst.pbutils.Discoverer and refactor API
- New API wraps gst.pbutils.Discoverer for mopidy use.
  - Custom scanner code removed.
- Callback based async API switched with simpler synchronous API
  - Scanner is feed one and one URI and returns the result or raises an error.
- Adds new ScannerError exception for error handling in scanner
- Limits local/scan_timeout to 1000-3600000 i.e. 1s to 1h
- Files with zero duration are now excluded.
- Mtime handling moved out of scanner so we can use it for streams etc.
2013-10-20 13:22:00 +02:00
Stein Magnus Jodal
7d874873bd local: Include albumartist in 'any' searches 2013-10-19 22:14:53 +02:00
Stein Magnus Jodal
ccbae310c6 local: Add albumartist support to search/find_exact 2013-10-12 00:16:20 +02:00
Stein Magnus Jodal
5c7a496dc2 Fix flake8 warnings 2013-08-08 21:09:01 +02:00
Stein Magnus Jodal
80d122ff92 Merge branch 'develop' of github.com:mopidy/mopidy into develop
Conflicts:
	docs/changelog.rst
2013-08-05 23:33:08 +02:00
Stein Magnus Jodal
e2bec79220 scanner: Reorder config values 2013-08-05 23:19:39 +02:00
Tobias Sauerwein
3c6a0543f5 Scanner: Fix deadlock on incorrectly identified files 2013-07-31 23:52:24 +02:00
Thomas Adamcik
6ac62c6869 local: Review fixes. 2013-07-30 22:59:22 +02:00
Thomas Adamcik
18ed7c6279 local: Convert mopidy-local extension to local: uris.
- Use local:playlist:<name>, local:track:<path> and local:search uris
- Adds LocalPlaybackProvider which translates to file uris.
- Switches to storing actual uris in playlists - so local: urls and not
  file:// or plain paths.
- Moved file:// to streaming plugin
- Cleaned up tests and imports for these changes.
2013-07-30 00:40:12 +02:00
Thomas Adamcik
6818e20218 utils: Convert path_to_uri to single argument 2013-07-30 00:23:23 +02:00
Thomas Adamcik
c2cc9f027c local: Switch to using updater from extensions 2013-07-30 00:21:55 +02:00
Thomas Adamcik
dfcb49a8ba ext: Add library updaters to extensionss 2013-07-30 00:21:55 +02:00
Thomas Adamcik
00e88361f3 local: Add library update provider for tag caches.
This adds the basic interface implemenations for supporting tag caches using
the new update APIs.
2013-05-20 23:53:38 +02:00
Thomas Adamcik
855d03c81e local: start reading mtime from tag caches 2013-05-20 00:58:43 +02:00
Stein Magnus Jodal
de84fdfef4 Remove hacks required by #302 to run on older Python 2.6.x 2013-04-29 19:52:29 +02:00
Thomas Adacmik
085b44e52f path: Update with respect to review comments in #427 2013-04-27 02:21:27 +02:00