Commit Graph

61 Commits

Author SHA1 Message Date
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
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
df1820f0a7 Add genre, composer, and performer tags and use them 2013-11-02 02:29:37 +01: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
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
24a2b08fc5 mpd: Don't return fake artists when searching by albumartist 2013-10-27 20:24:07 +01:00
Stein Magnus Jodal
dabddd81fd mpd: Accept 'albumartist' type to 'find' and 'search' commands 2013-10-27 20:22:45 +01: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
35a31d3d27 Add support for 'count ..' and 'find .. track X' 2013-10-20 23:04:48 +02:00
Stein Magnus Jodal
9af4290f45 mpd: Accept listall and listallinfo without the URI argument 2013-09-01 23:14:30 +02:00
Stein Magnus Jodal
579a93437f mpd: Allow full MPD queries to 'count'
Fix hechtus/mopidy-gmusic#1
2013-07-09 11:48:11 +02:00
Stein Magnus Jodal
99eed0e6b8 mpd: Allow 'count' without quotes around the 'tag' param
Fix hechtus/mopidy-gmusic#1
2013-07-09 11:22:45 +02:00
Nick Steel
15875b092c Use helper function lookup_playlist_from_name() to resolve uniquified MPD
playlist names to mopidy playlists in all MPD playlist handling commands.
Also make playlist_uri_from_name map private.
2013-04-14 23:00:15 +01:00
Stein Magnus Jodal
27ff2e5f0a Revert "mpd: 'private' fields start with an _"
This reverts commit f2000d6e6d.

I did not have the code fresh in mind when saying that these should be prefixed
with _. As they are accessed from other classes, they are indeed public, and
should not be prefixed. My bad.
2013-04-09 23:26:23 +02:00
Thomas Refis
f2000d6e6d mpd: 'private' fields start with an _ 2013-04-09 21:31:36 +02:00
Thomas Refis
7d59d03ec0 mpd: minor style commit 2013-04-09 11:53:37 +02:00
Thomas Refis
698f505da6 mpd: fix style issues and type errors introduced in 87ce309
Tests are now OK
2013-04-07 14:54:27 +02:00
Thomas Refis
87ce309749 mpd: playlist name disambiguation 2013-04-06 22:48:34 +02:00
Stein Magnus Jodal
54662479ef mpd: Limit use of fake tracks in 'find` responses
If searching for exact artist, don't include fake artist tracks.
If searching for exact album, don't include fake album tracks.

This makes sure that ncmpcpp's media library doesn't include the magic
artist-track in an artist's album listing, and that it doesn't include the
magic album-track in an album's track listing.
2012-12-22 12:49:27 +01:00
Stein Magnus Jodal
04be75ed97 mpd: Add album date to 'fake' tracks 2012-12-22 02:12:07 +01:00
Stein Magnus Jodal
5060db48f2 mpd: Refactor search result to (fake) tracks functionality 2012-12-21 23:51:40 +01:00
Stein Magnus Jodal
455f0145e7 mpd: Include artists and albums in search results 2012-12-21 23:10:20 +01:00
Stein Magnus Jodal
b0ba2040df Return SearchResult objects from find_exact() and search()
This applies to both backends and core.
2012-12-21 22:05:20 +01:00
Stein Magnus Jodal
08f0178425 mpd: Extract query translators for direct testing 2012-12-20 00:46:35 +01:00
Stein Magnus Jodal
b1f0a67dd4 mpd: Reuse query regexp. Fix 'filename' expression 2012-12-15 23:43:45 +01:00
Stein Magnus Jodal
b95c8032de mpd: Add 'searchaddpl' command 2012-12-15 01:18:13 +01:00
Stein Magnus Jodal
9b1dfa6978 mpd: Add 'searchadd' command 2012-12-15 00:40:33 +01:00
Stein Magnus Jodal
6ac2c249b5 mpd: Add 'findadd' command 2012-12-15 00:39:52 +01:00
Stein Magnus Jodal
dc24876f66 mpd: Allow bad 'search' requests 2012-11-21 00:49:11 +01:00
Stein Magnus Jodal
5fbb6328d6 mpd: list shouldn't return blank artist names, album names, or dates 2012-11-21 00:48:08 +01:00
Stein Magnus Jodal
bec91284be mpd: Allow bad 'find' requests 2012-11-20 00:38:53 +01:00
Stein Magnus Jodal
78dec9717d mpd: Ignore search/find/list with empty filter values (fixes #246) 2012-11-19 22:20:51 +01:00
Stein Magnus Jodal
7df556c9b3 Return lists of tracks from search() and find_exact() 2012-11-19 18:13:14 +01:00
Stein Magnus Jodal
5368c5fade mpd: Docstring formatting 2012-11-17 16:49:23 +01:00
Stein Magnus Jodal
7ec156e373 mpd: Don't lowercase search queries 2012-11-13 11:55:54 +01:00
Stein Magnus Jodal
cc39853638 mpd: Normalize file/filename filters to uri filters 2012-11-13 11:53:47 +01:00
Stein Magnus Jodal
4f0a708411 mpd: Allow 'file' key to 'search' and 'find' 2012-11-13 11:34:48 +01:00
Stein Magnus Jodal
6acaa490e9 Make all strings unicode by default (fixes #224) 2012-11-13 00:18:47 +01:00
Stein Magnus Jodal
666800ec57 Fix most flake8 warnings (#211) 2012-10-16 14:00:34 +02:00
Stein Magnus Jodal
2fb878df2e MPD: Rename context.backend to context.core 2012-09-27 20:35:39 +02:00
Stein Magnus Jodal
7525cad94c Let Track.date be an ISO-8601 string
This lets us have less precision than full dates. E.g. Spotify tracks only got
release year, not full release date.

The original MPD server regularly expose data like this as "Date: 1977", so we
don't need to fake more precision for MPD's sake.
2012-09-12 23:06:06 +02:00
Stein Magnus Jodal
4ce88faed4 Fix deprecation warning by using str(ex) instead of ex.message (fixes #175) 2012-09-04 14:04:55 +02:00
Stein Magnus Jodal
09b02f0558 Reraise exception without losing the traceback (fixes #173) 2012-09-03 16:09:14 +02:00
Stein Magnus Jodal
219e723974 Fix crash on mismatching quotation (fixes #137) 2012-02-13 10:30:46 +01:00
Stein Magnus Jodal
716c5b03e2 Remove Playlist.mpd_format() and its usage 2011-12-28 00:36:51 +01:00