Commit Graph

3010 Commits

Author SHA1 Message Date
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
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
Thomas Adamcik
73f91710e1 config: Add postprocessor for converting config back.
Idea forward from here is that once we have a config sub command that we expose
a setting config values which will:

1. Run the preprocessor on the file to edit.
2. Load it into config parser.
3. Modify the value.
4. Write it to a io.ByteString
5. Run the postprocessor
6. Save the file with comments etc intact.
2013-10-27 12:30:02 +01:00
Thomas Adamcik
d5cb4282d9 config: Add preprocessor for preserving comments when editing configs.
Adds markers to configs files that ensures configparser won't mangle comments
in the files. Will be combined with a postprocessor that undoes these changes.
2013-10-27 11:38:01 +01:00
Stein Magnus Jodal
b0ae7d3c6f local: Fix crash on non-ASCII chars in URIs 2013-10-24 23:22:01 +02:00
Stein Magnus Jodal
e448d77eb7 mpd: Fix flipped mute logic 2013-10-24 22:20:07 +02:00
Lasse Bigum
95046b4852 Fix small bug and fix test 2013-10-22 00:12:32 +02:00
Lasse Bigum
6028d6766d Fix tabs->spaces and extra ')' 2013-10-20 23:35:31 +02:00
Lasse Bigum
6f761a03f0 Return MpdArgError if count parsing fails 2013-10-20 23:04:48 +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
Thomas Adamcik
bfddfab15a core: Fix typos pointed out in PR#542 2013-10-20 22:47:54 +02:00
Thomas Adamcik
84c373d7ea Merge branch 'develop' into fix/bug-496-handle-single
Conflicts:
	mopidy/core/tracklist.py
2013-10-20 22:46:35 +02:00
Thomas Adamcik
ba55181bc1 core: Reduce duplication between next and eot track handling. 2013-10-20 21:48:42 +02:00
Thomas Adamcik
f1f223bba8 local: Fix handling of single in eot_track (fixes #496)
- Adds test cases for code paths that caused bug
- Short circuits EOT next track handling when in single mode.
2013-10-20 21:43:19 +02:00
Thomas Adamcik
40754bb2e0 core: Fix handling of shuffle (fixes #453)
- Shuffle internal list when random is enabled
- Use presence of tl_track to determine if this is first run to trigger
  subsequent shuffles.
2013-10-20 19:28:13 +02:00
Stein Magnus Jodal
cfe93c244b scanner: Reject files with <100ms audio data 2013-10-20 16:43:04 +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
Stein Magnus Jodal
e6712bac93 Merge pull request #538 from adamcik/feature/gst-discoverer
scanner: Switch to gst.pbutils.Discoverer and refactor API
2013-10-20 07:03:47 -07:00
Thomas Adamcik
2f01fc4e46 scanner: Review comments and flake fixes
- Move ScannerError to exceptions module.
- Subclass ScannerError from MopidyException.
- Fix import sorting.
2013-10-20 15:51:39 +02:00
Stein Magnus Jodal
d8b0952f66 scanner: Remove support for running Python on the mopidy/scanner.py file
See commit 1a02b4d17f for details
2013-10-20 15:46:35 +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