Stein Magnus Jodal
c59784c1e8
local: Add path_to_file_uri()
2015-05-08 00:55:03 +02:00
Stein Magnus Jodal
4d5b485760
local: Add local_uri_to_file_uri()
...
Which replaces local_track_uri_to_file_uri() and also handles
local:directory: URIs.
2015-05-08 00:55:03 +02:00
Stein Magnus Jodal
e30cd2cfa5
local: Rename local_{track_ => }uri_to_file_uri()
2015-05-08 00:32:09 +02:00
Stein Magnus Jodal
d8bcd7f273
Rename mopidy.utils to mopidy.internal
2015-05-07 23:15:56 +02:00
Thomas Adamcik
efad50c253
cleanup: Stop using deprecated copy()
2015-04-17 00:00:58 +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
48a461991a
local: Skip unplayable tracks
2015-04-11 00:38:46 +02:00
Stein Magnus Jodal
b34b1c2620
Fix indentation issues found with autopep8
2015-04-03 00:06:47 +02:00
Stein Magnus Jodal
c4940cbea2
autopep8: Add space after class signature/docstring
2015-04-03 00:05:26 +02:00
Thomas Adamcik
ead725e995
core/backend: Stop supporting old search signatures
...
All backends are expected to support the exact argument. A friendly log message
will be printed to prompt users to upgrade backends that fail due to this.
2015-03-24 23:54:49 +01:00
Thomas Adamcik
3e361d4870
local: Use the new debug timer instead of our own
2015-03-24 08:47:32 +01:00
Thomas Adamcik
7ec2342921
core: Normalize search queries
...
This is needed as otherwise each and every backend needs to handle the fact
that some "bad" clients might send {'field': 'value'} instead of
{'field': ['value']} Though the real problem isn't the clients but our
organically grown query API.
2015-03-22 23:33:49 +01:00
Stein Magnus Jodal
56dca0e931
Merge pull request #1064 from adamcik/fix/1052-break-backend-play
...
backend: Change playback API (breaking change!)
2015-03-22 09:19:39 +01:00
Thomas Adamcik
a6ef1bb8d9
backend: Add translate_uri for simpler API for the simple case.
...
change_track(track) simply calls translate_uri(uri) by default now so that 90%
of clients with custom URIs should be able to just implement this one method on
the backend any ignore everything else.
2015-03-21 11:43:46 +01:00
Stein Magnus Jodal
b2f60bc338
m3u: Extract new M3U backend from local
...
Fixes #1054
2015-03-21 08:13:45 +01:00
Stein Magnus Jodal
65c5242b14
backend: Remove default impl of PlaylistProvider.playlists
...
The default was insane. For one, because overriding e.g. just the
getter would make the property have a pair of working getter and
setter that are entirely disconnected.
2015-03-18 00:25:26 +01:00
Thomas Kemmer
29b4a2075a
local: Fix get_images() for local libraries returning single track from lookup().
2015-03-14 16:12:46 +01:00
Stein Magnus Jodal
30badf60b9
Merge pull request #1033 from adamcik/feature/scanner-with-typefind
...
Add typefinding / MIME guess to scan code.
2015-03-13 23:22:12 +01:00
Thomas Adamcik
5600b395bf
Merge pull request #1032 from tkem/fix/1031
...
local: Add get_images() to local library (Fixes #1031 )
2015-03-13 17:54:47 +01:00
Thomas Adamcik
cee73b5501
audio: Add support for checking seekable state in scanner
...
Return type of scanner changed to a named tuple with (uri, tags, duration,
seekable). This should help with #872 and the related "live" issues.
Tests, local scan and stream metadata lookup have been updated to account for
the changes.
2015-03-12 22:11:50 +01:00
Thomas Adamcik
40c7225cb7
local: Fix remainder display in local scan
2015-03-12 22:11:33 +01:00
Thomas Kemmer
e655d39384
Fix #1031 : Add get_images() to local library.
2015-03-12 11:43:27 +01:00
Thomas Adamcik
29b00cabf9
Merge pull request #1028 from tkem/fix/1026
...
Fix #1026 : Sort local playlists by name.
2015-03-08 23:53:04 +01:00
Stein Magnus Jodal
af87a17ff5
docs: Fix all warnings
2015-03-08 21:43:09 +01:00
Thomas Kemmer
94c418d5e6
Fix #1026 : Sort local playlists by name.
2015-03-07 22:42:22 +01:00
Thomas Kemmer
9150c34053
Fix #1023 : Remove support for local album images from coverartarchive.org
2015-03-06 10:02:08 +01:00
Thomas Adamcik
319c1fc1e3
local: Readd support for search without limit for get_distinct support
2015-03-02 23:39:06 +01:00
Thomas Adamcik
7c2c4c1c45
Merge branch 'fix/local-json-limit-offset' of https://github.com/ali/mopidy into develop
2015-03-02 23:18:39 +01:00
Thomas Adamcik
8cc9c9bbc0
core: Rename list_distinct to get_distinct
2015-03-02 22:41:09 +01:00
Thomas Adamcik
ba8fc51f86
local: Add support for list_distinct and implement for json backend
2015-03-02 00:26:06 +01:00
ronaldz
b2976dccb6
Trailing white space and expected blank line fix
2015-03-01 14:40:08 -05:00
ronaldz
87ea3c9745
Added a --force argument. Related to issue #910
2015-02-26 21:32:31 -05:00
ronaldz
961aafff45
Maximum was miss-spelled in the local Scan command's help text
2015-02-25 21:19:47 -05:00
Thomas Adamcik
0829f34a90
Merge pull request #999 from tkem/fix/998
...
Fix #998 : Remove event already sent by PlaylistsController.
2015-02-25 21:05:53 +01:00
Thomas Kemmer
dd54fdb086
Fix #937 : Local playlists refactoring.
2015-02-25 18:50:29 +01:00
Thomas Kemmer
2ae68d971a
Fix #998 : Remove event already sent by PlaylistsController.
2015-02-25 17:35:06 +01:00
Ali Ukani
ead147f482
Fix flake8 errors, prepare for Python 3 port
...
Fixes flake8 warnings
Reword docstring for find_exact
Use range instead of xrange in preparation for porting to Python 3
2015-02-16 02:24:40 -05:00
Ali Ukani
fc21d466f0
local: use limit and offset when searching json library
...
Fixes the json local library's search behavior. Uses limit and offset
arguments when returning search results.
2015-02-16 02:24:40 -05:00
Ali Ukani
92910e4362
Fix flake8 tests
...
Fixes "W503 line break before binary operator"
2015-02-16 02:02:14 -05:00
Stein Magnus Jodal
83a5246074
Merge pull request #980 from adamcik/feature/add-tags-and-duration-to-local-library-add
...
Add tags and duration to local library add()
2015-02-12 23:26:13 +01:00
Thomas Adamcik
38158b4430
local: Minor docstring review corrections
2015-02-12 22:48:05 +01:00
Lasse Bigum
34ada2784a
flake8: fix PEP8 warnings about lambda
...
Fix the 'lambda to def' warnings
2015-02-12 22:10:36 +01:00
Thomas Adamcik
12cc2ed35c
local: Call library add with tags and duration if asked to
2015-02-12 21:10:21 +01:00
Stein Magnus Jodal
a693993905
flake8: Fix new warnings after flake8 upgrade
2015-02-07 17:11:36 +01:00
Ali Ukani
20751a5ad7
Fix album filter: Should work when track's album is an Album or None
2015-01-05 23:55:16 -05:00
Thomas Adamcik
f4c501a08f
local: Reuse the mtime we already found in local scan
2014-12-23 23:25:47 +01:00
Thomas Adamcik
32da1cb8e9
local: Use MIN_DURATION_MS in log message
2014-12-21 21:46:21 +01:00
Thomas Adamcik
9be788b129
audio: Move tags to track conversion to audio utils
2014-12-18 23:36:56 +01:00
Thomas Adamcik
de6bd63481
audio: Remove min duration code from scanner.
...
The local scanner now handles this itself by looking at the duration.
2014-12-18 23:28:19 +01:00
Thomas Adamcik
4f8244c499
audio: Convert audio_data_to_track to tags_to_track
...
The new function only uses tags as input. In other words we now need to set
length, uri and mtime ourselves. Users of scan APIs have been updated.
2014-12-18 23:28:19 +01:00