Commit Graph

6457 Commits

Author SHA1 Message Date
Thomas Adamcik
2e705cf8d4 core: Add pending depraction for *_track methods 2015-04-19 00:22:52 +02:00
Thomas Adamcik
a88d3cf613 core: Add get_*_tlid helpers 2015-04-19 00:22:52 +02:00
Thomas Adamcik
aab143aeec core: Cleanup internals of next_track a bit 2015-04-19 00:22:52 +02:00
Thomas Adamcik
691abb2431 core: Stop making tl track copies all over the place 2015-04-19 00:22:52 +02:00
Thomas Adamcik
6a7005be1e core: Add tlid argument to index calls.
Should save clients from having to pass tl_track models around.
2015-04-19 00:22:52 +02:00
Stein Magnus Jodal
5acc3ea564 docs: Fix syntax error 2015-04-17 22:58:19 +02:00
Stein Magnus Jodal
7752ebe7e4 Merge pull request #1130 from adamcik/feature/more-deprecation-cleanups
More deprecations and correspoding cleanups
2015-04-17 00:18:28 +02:00
Thomas Adamcik
09027854c6 validation: Reject iterators as core arguments
iter() always never re-wraps an iterator, so 'iter(i) is iter(i)' tests if we
wrapped a container or if we already had an iterator. I also tried
types.GeneratorType and inspect helpers but they did not work for this use
case.
2015-04-17 00:05:46 +02:00
Thomas Adamcik
81fd426caf tests: Update tests to not used deprecated kwargs 2015-04-17 00:00:58 +02:00
Thomas Adamcik
ab761c4596 core: Stop using kwarg based remove call 2015-04-17 00:00:58 +02:00
Thomas Adamcik
7459e9c9d8 mpd: Stop using deprecated kwarg based calls 2015-04-17 00:00:58 +02:00
Thomas Adamcik
d2f9733296 core: Track.id was removed five years ago, update docs. 2015-04-17 00:00:58 +02:00
Thomas Adamcik
efad50c253 cleanup: Stop using deprecated copy() 2015-04-17 00:00:58 +02:00
Thomas Adamcik
2828432008 core: Deprecate remaining methods that used kwargs 2015-04-17 00:00:58 +02:00
Stein Magnus Jodal
e265f5d673 Merge pull request #1128 from adamcik/feature/validate-core-input
Validate core inputs
2015-04-16 07:45:17 +02:00
Thomas Adamcik
0b928e7876 docs: Add core input validation to changelog 2015-04-15 23:51:33 +02:00
Thomas Adamcik
98587f5098 review: Fix test name 2015-04-15 23:48:44 +02:00
Thomas Adamcik
2c31dbe47c core: Check correct query fields in core 2015-04-15 23:42:45 +02:00
Thomas Adamcik
97235f9441 core: Don't allow TLIDs in queries, or integers
Handle this in tracklist.filter() which is the only API that allows number
and/or TLIDs.
2015-04-14 23:46:20 +02:00
Thomas Adamcik
324bec1f4a core: Validate core API calls 2015-04-14 23:45:56 +02:00
Thomas Adamcik
8646ba4252 utils: Add validation helpers for verifying core APIs 2015-04-14 23:16:12 +02:00
Stein Magnus Jodal
093c4340cd Merge branch 'v1.0.x' into develop
Conflicts:
	mopidy/audio/scan.py
	tests/audio/test_scan.py
2015-04-13 08:19:14 +02:00
Stein Magnus Jodal
c8b348a61d docs: Tweak changelog 2015-04-13 08:16:54 +02:00
Thomas Adamcik
94628b5f82 local: Don't use tuple form of TlTracks in tests 2015-04-13 00:50:33 +02:00
Thomas Adamcik
1b10a783d3 mpd: Update tests to use setters and actual booleans 2015-04-13 00:16:09 +02:00
Thomas Adamcik
8c7a9e3f95 mpd: 'list "artist" ""' should not generate an invalid query 2015-04-13 00:02:00 +02:00
Thomas Adamcik
97515c8125 mpd: Only short circuit 'add "uri"' case when we have a URI scheme 2015-04-12 23:59:20 +02:00
Stein Magnus Jodal
f85ea2a39d flake8: Fix new import order warnings
(cherry picked from commit 71ab9733c7)
2015-04-12 23:05:53 +02:00
Stein Magnus Jodal
71ab9733c7 flake8: Fix new import order warnings 2015-04-12 23:03:46 +02:00
Stein Magnus Jodal
c1ab352ba1 Merge pull request #1125 from adamcik/feature/model-tweaks
More model tweaks
2015-04-12 22:10:52 +02:00
Stein Magnus Jodal
a3c69f1597 Merge pull request #1124 from adamcik/fix/audio-scanner-robustness
Improve audio scanner robustness
2015-04-12 22:10:00 +02:00
Thomas Adamcik
20019edf2d models: Fix review comments 2015-04-12 16:03:51 +02:00
Thomas Adamcik
68c2758009 docs: Add scanner improvements to changelog 2015-04-12 14:24:28 +02:00
Thomas Adamcik
1a1a0753a4 audio: Use print function in scanner 2015-04-12 14:16:35 +02:00
Thomas Adamcik
777a663896 models: Take advantage of fact that our hash won't change
This might just be pointless micro-optimization as I have _not_ measured. But
it seemed silly to recursively hash everything in a model each time a hash is
required. As we know the data can not change.
2015-04-11 01:10:00 +02:00
Thomas Adamcik
79d1862510 models: Compare stream of items for models __eq__
Creating dictionaries for this is was just wasteful.
2015-04-11 01:07:18 +02:00
Thomas Adamcik
6327a67874 models: Make sure we really only add __weakref__ once 2015-04-11 00:47:53 +02:00
Thomas Adamcik
48a461991a local: Skip unplayable tracks 2015-04-11 00:38:46 +02:00
Thomas Adamcik
9bc4d8b713 audio: Make scanner handle all media types.
I don't think this makes anything slower, as before we would still decode
anything we came across in the hopes that we find raw audio.
2015-04-11 00:29:07 +02:00
Thomas Adamcik
dfaa3f1433 audio: Have scanner tell us if we found decodeable audio 2015-04-11 00:21:35 +02:00
Thomas Adamcik
05c4af017b audio: Create fakesinks on the fly for scanner pads
This makes us correctly handle say when someone gives us a movie, or something
else that seems to have multiple things that can be encoded internally.
2015-04-11 00:21:35 +02:00
Thomas Adamcik
c77b63f4c8 audio: Add main method to scanner for quick testing 2015-04-11 00:21:35 +02:00
Thomas Adamcik
512e51fba2 Merge pull request #1122 from jodal/feature/config-in-core
core: Get access to config
2015-04-09 15:00:40 +02:00
Stein Magnus Jodal
c5c9bc39e1 core: Get access to config
Needed for #997
2015-04-09 07:30:37 +02:00
Stein Magnus Jodal
c367d350f7 Merge pull request #1117 from adamcik/feature/models-memory-reduction
Improve models memory usage
2015-04-08 23:29:08 +02:00
Stein Magnus Jodal
bed3cb810a Merge pull request #1111 from adamcik/feature/make-core-more-robust
Make core more robust
2015-04-08 23:24:26 +02:00
Thomas Adamcik
2cb2750b39 models: Simplify JSON decoder code 2015-04-08 23:23:55 +02:00
Thomas Adamcik
fb0e4dc7a1 models: Assign slots from fields 2015-04-08 23:20:59 +02:00
Alexandre Petitjean
bbfa722af3 docs: Update to Archlinux instructions 2015-04-08 23:20:18 +02:00
Thomas Adamcik
2cc91c0a7f core: Fix review comments for PR#1111 2015-04-08 23:13:07 +02:00