Commit Graph

2862 Commits

Author SHA1 Message Date
Stein Magnus Jodal
091f8ffdf0 Merge pull request #486 from alzeih/develop
Strip invalid characters from playlist names sent through MPD frontend

Fix #474
Fix #480
2013-08-06 03:52:21 -07:00
alzeih
7182f98843 cleanup tests and code
- move tests to tests/frontends/mpd/stored_playlists_test.py

stored_playlists_test.py:
- rename test methods names to remove _config
- remove unnecessary imports, setup, teardown, variables
- sort remaining imports

mopidy/frontends/mpd/dispatcher.py:
- remove regex comment
2013-08-06 21:14:23 +12:00
Stein Magnus Jodal
80d122ff92 Merge branch 'develop' of github.com:mopidy/mopidy into develop
Conflicts:
	docs/changelog.rst
2013-08-05 23:33:08 +02:00
Stein Magnus Jodal
7973acf076 Merge branch 'feature/scanner_fix_deadlock' into develop
Fixes #476, #483
2013-08-05 23:31:27 +02:00
Stein Magnus Jodal
f35b45bf57 scanner: Fix time unit in log message. Formatting 2013-08-05 23:24:43 +02:00
Stein Magnus Jodal
e2bec79220 scanner: Reorder config values 2013-08-05 23:19:39 +02:00
Stein Magnus Jodal
022bcd089f scanner: Fix unregistering of the timeout callback 2013-08-05 23:18:37 +02:00
Stein Magnus Jodal
a5d8f02454 scanner: Fix local/scan_timeout value check 2013-08-05 23:18:07 +02:00
Thomas Adamcik
0ce791f215 Merge branch 'develop' into feature/local-uris 2013-08-05 22:41:37 +02:00
Stein Magnus Jodal
f0b69c3394 Merge remote-tracking branch 'adamcik/feature/visualization' into develop
Conflicts:
	docs/changelog.rst
2013-08-05 22:41:09 +02:00
alzeih
3f1192e95b Match MPD implementation and add tests 2013-08-02 13:38:52 +12:00
alzeih
ac9acaabf0 typo in regex 2013-08-02 01:32:07 +12:00
Tobias Sauerwein
dee0d01e20 Throw an error when scan_timeout config is not loaded. 2013-08-01 09:31:44 +02:00
Thomas Adamcik
20729eabe3 audio: Add visualiser support and adjust playbin flags
Sets up playbin to use just audio, soft_volume and downloading.
2013-07-31 23:55:59 +02:00
Tobias Sauerwein
3c6a0543f5 Scanner: Fix deadlock on incorrectly identified files 2013-07-31 23:52:24 +02:00
Alexandre Petitjean
97848bc1a2 String config value can be optionnal AND have a choices list
Integer value can be optionnal
2013-07-31 10:05:20 +02:00
Thomas Adamcik
6ac62c6869 local: Review fixes. 2013-07-30 22:59:22 +02:00
Alexandre Petitjean
bb3242d15a correct default port config for proxy and deserialize function 2013-07-30 08:37:24 +02:00
Alexandre Petitjean
f9da3fe3e9 implement remarks for #481, also add scheme as requested in #472 2013-07-30 08:17:10 +02:00
alzeih
6c7566a2f3 Strip invalid characters from playlist names for MPD frontend
Fixes mopidy/mopidy$480 and mopidy/mopidy#474
2013-07-30 13:57:29 +12:00
Thomas Adamcik
18ed7c6279 local: Convert mopidy-local extension to local: uris.
- Use local:playlist:<name>, local:track:<path> and local:search uris
- Adds LocalPlaybackProvider which translates to file uris.
- Switches to storing actual uris in playlists - so local: urls and not
  file:// or plain paths.
- Moved file:// to streaming plugin
- Cleaned up tests and imports for these changes.
2013-07-30 00:40:12 +02:00
Thomas Adamcik
6818e20218 utils: Convert path_to_uri to single argument 2013-07-30 00:23:23 +02:00
Thomas Adamcik
af707dfdbb utils: Switch to urlparse for file-uri/path handling 2013-07-30 00:23:23 +02:00
Thomas Adamcik
bc4935bfcb backends: Add change track helper to playback provider 2013-07-30 00:22:57 +02:00
Thomas Adamcik
3cfa6c3bc0 local: Remove updater from backends 2013-07-30 00:21:55 +02:00
Thomas Adamcik
c2cc9f027c local: Switch to using updater from extensions 2013-07-30 00:21:55 +02:00
Thomas Adamcik
dfcb49a8ba ext: Add library updaters to extensionss 2013-07-30 00:21:55 +02:00
Alexandre Petitjean
05733cf844 correct remarks from #481 2013-07-29 22:22:28 +02:00
Alexandre Petitjean
de80c33753 Add proxy/port to configuration 2013-07-29 09:57:32 +02:00
alzeih
47c26acf57 spotify folders not necessary as a positional arg
- rename to folders
- remove confusing None for starred playlists
2013-07-28 23:53:47 +12:00
alzeih
c4dcef81b4 - use path separators instead of square brackets
- use generator expression instead of list comprehension
- fix bug for empty but not None list of folders
2013-07-28 22:42:15 +12:00
alzeih
c58de5aa75 workaround for mopidy/mopidy#62 - appends folder names to playlist 2013-07-28 16:42:16 +12:00
Stein Magnus Jodal
2f94b5d219 mpd: Remove remnants of Python 2.6 support 2013-07-26 12:45:10 +02:00
Tobias Sauerwein
a372df8333 Scanner: Add disc number to album and track models (fixes #318) 2013-07-26 12:20:29 +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
Stein Magnus Jodal
0a61b4642e Merge branch 'master' into develop
Conflicts:
	docs/changelog.rst
2013-07-01 11:53:45 +02:00
Stein Magnus Jodal
cb561519db Bump version number to 0.14.2 2013-07-01 11:50:06 +02:00
Stein Magnus Jodal
2ad1bb8bb3 config: Raise ValueError if Path is asked to serialize unicode
If we accept unicode and try to encode using sys.getfilesystemencoding() then
it may work most of the time, but will fail if we get non-ASCII chars in the
unicode string and the file system encoding is e.g. ANSI-something because the
locale is C. Thus, I figure it is better to always fail if we try to serialize
Path from unicode strings. Paths should be maintained as bytes all the time.
2013-06-27 00:08:05 +02:00
Stein Magnus Jodal
59e3b9aec3 config: Formatting 2013-06-27 00:07:57 +02:00
Thomas Adamcik
71618f840f scanner: Fixing review comments. 2013-05-22 20:36:39 +02:00
Thomas Adamcik
98bb35d4d1 scanner: Convert to using library updater.
This version of the scanner switches to using the updater API, in other words
we are now fairly close to being able to plug in alternate libraries for local
files and populate them with mopidy-scan.
2013-05-20 23:54:48 +02:00
Thomas Adamcik
00e88361f3 local: Add library update provider for tag caches.
This adds the basic interface implemenations for supporting tag caches using
the new update APIs.
2013-05-20 23:53:38 +02:00
Thomas Adamcik
7f80a188c9 core: Add library updater.
Idea behind this class is to have a clear sub-set of our library API that is
only used for updating libraries. This makes it very clear what methods are
needed for just libaries and additionally updatable libraries.

Next couple of commits will build on this idea taking us closer to plugable
local libraries.
2013-05-20 23:50:46 +02:00
Thomas Adamcik
5961a1f5c8 scanner: Write tag cache to tmp file.
Tag cache is now output to a tmp file residing in the same folder as the real
one. Once generated the tmpfile is moved over the original file for an atomic
updated.
2013-05-20 22:56:09 +02:00
Thomas Adamcik
351589c6c8 path: Add find_uris version of find_files 2013-05-20 22:42:31 +02:00
Thomas Adamcik
b4411ec877 scanner: Update based on review comments. 2013-05-20 15:28:41 +02:00
Thomas Adamcik
afb46b23de scanner: Respect mtime when picking files to scan.
Speedup scanning by checking what files exist, and which have been updated.
2013-05-20 01:45:52 +02:00
Thomas Adamcik
cb6634db8c scanner: Load existing tracks from local library. 2013-05-20 01:42:54 +02:00
Thomas Adamcik
c59f488b11 scanner: Pass in files to scan 2013-05-20 01:42:48 +02:00