Thomas Adamcik
8cf9da3d55
utils: Fix corner case in format_proxy scheme handling
2015-04-29 00:27:56 +02:00
Thomas Adamcik
5153d9e19f
utils: Add format_user_agent helper
2015-04-28 23:51:19 +02:00
Thomas Adamcik
a48aadaaed
utils: Add basic format proxy helper
2015-04-28 23:50:52 +02:00
Thomas Adamcik
8851fb151c
models: Allow Ref.type to have any value
...
This is to address a potential breakage brought up in #1150 as it turns out
Mopidy-Podcast uses custom models and ref types.
2015-04-28 22:58:15 +02:00
Stein Magnus Jodal
97c336200b
Merge branch 'v1.0.x' into develop
2015-04-28 00:02:26 +02:00
Stein Magnus Jodal
9c2aabb899
Bump version to 1.0.3
2015-04-28 00:00:25 +02:00
Stein Magnus Jodal
b14aee3e04
Merge branch 'v1.0.x' into develop
...
Conflicts:
docs/changelog.rst
2015-04-27 00:18:41 +02:00
Stein Magnus Jodal
21289f8fe5
Bump version to 1.0.2
2015-04-27 00:02:12 +02:00
Thomas Adamcik
651e89357f
tests: Fix IssueGH1120RegressionTest flakiness
2015-04-26 23:23:30 +02:00
Thomas Adamcik
7e59a5aecb
models: Split models into smaller modules
2015-04-25 00:11:41 +02:00
Thomas Adamcik
b3ea425fd0
tests: Fix IssueGH1120RegressionTest flakiness
2015-04-24 19:26:02 +02:00
Stein Magnus Jodal
3dba4f4208
Merge branch 'v1.0.x' into develop
2015-04-23 23:40:04 +02:00
Stein Magnus Jodal
9c793a38ff
Bump version to 1.0.1
2015-04-23 23:35:45 +02:00
Thomas Adamcik
d4c695ac75
mpd: Split browse and playlist name to uri caching
2015-04-23 23:08:25 +02:00
Thomas Adamcik
a62293c316
core: Add play(tlid) support
2015-04-22 20:55:51 +02:00
Thomas Adamcik
fba4069cfd
core: Make index return current index when missing args
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
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
efad50c253
cleanup: Stop using deprecated copy()
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
98587f5098
review: Fix test name
2015-04-15 23:48:44 +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
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
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
Thomas Adamcik
20019edf2d
models: Fix review comments
2015-04-12 16:03:51 +02:00
Thomas Adamcik
6327a67874
models: Make sure we really only add __weakref__ once
2015-04-11 00:47:53 +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
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
Thomas Adamcik
2cc91c0a7f
core: Fix review comments for PR#1111
2015-04-08 23:13:07 +02:00
Thomas Adamcik
e5f59495fc
core: Update refresh test case to fail on multiple calls to same backend
2015-04-08 21:18:18 +02:00
Thomas Adamcik
511cf4e326
core: Catch exceptions when browsing in backends
...
Also splits browse into to method to better distinguish the two possible code
paths.
2015-04-08 21:17:44 +02:00
Thomas Adamcik
682c6b1c6c
Merge branch 'develop' into feature/make-core-more-robust
...
Conflicts:
docs/changelog.rst
2015-04-08 20:28:10 +02:00
Thomas Adamcik
05244f7e60
models: Deprecate copy and add replace method
...
Changed as with the memoization copy was lying, so replace is a better name.
2015-04-08 01:41:50 +02:00
Thomas Adamcik
b7375323e9
models: Memoize identical instances automatically
...
This combined with the previous changes has brought the memory use for a 14k
track test-set down from about 75MB to 17MB or so. Note that this does however,
mean that copy is now lying to us as it does not such thing whenever it can
avoid it.
2015-04-08 01:14:56 +02:00
Thomas Adamcik
86481b1d50
models: Shortcut case where copy didn't change anything
...
We no longer copy in this case and will just give you the same instance back.
2015-04-08 00:34:02 +02:00
Thomas Adamcik
0fee1b4b11
models: Switch to slots to reduce memory usage per instance
2015-04-08 00:30:53 +02:00
Thomas Adamcik
08fd99ffdb
models: Add Identifer type which interns values.
...
This gives some moderate memory saving since the values are used in multiple
places.
2015-04-08 00:11:23 +02:00
Stein Magnus Jodal
7bda4f835f
xdg: Add XDG dir utils
2015-04-07 23:50:59 +02:00
Thomas Adamcik
9b442e1563
review: Address review comments
2015-04-06 23:27:46 +02:00
Thomas Adamcik
50f68064be
core: Update PlaylistsController to catch backend exceptions
2015-04-06 02:13:51 +02:00
Thomas Adamcik
66771dec68
core: Update LibraryController to catch backend exceptions
2015-04-06 02:12:56 +02:00
Thomas Adamcik
2d03cd7290
models: Make fields handle unsetting defaults in __dict__
2015-04-05 13:09:19 +02:00
Thomas Adamcik
73415ce60f
models: Make sure del on attributes does not work
2015-04-05 13:08:15 +02:00