Stein Magnus Jodal
f85ea2a39d
flake8: Fix new import order warnings
...
(cherry picked from commit 71ab9733c7 )
2015-04-12 23:05:53 +02:00
Thomas Adamcik
1a1a0753a4
audio: Use print function in scanner
2015-04-12 14:16:35 +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
db48845e91
audio: Adjust queue sizes.
...
These are mostly just gut feeling guesses. We should really start exposing at
least a few of these as settings soon.
2015-04-03 14:43:44 +02:00
Thomas Adamcik
9f90b37aa5
audio: Limit post tee queue size
...
Not sure how small we can safely make this, but basically with the volume
element in front of the tee we "need" this as small as possible so the volume
changes fell snappy. Alternative would be one volume element per tee branch.
2015-04-03 14:43:44 +02:00
Thomas Adamcik
e76c3c9012
audio: Remove notify::mute/volume from software mixer
...
These will never be triggered externally when using plain software volume.
2015-04-03 14:43:44 +02:00
Thomas Adamcik
8236417e9d
audio: Move software volume into audiosink.
...
This turns off playbin controlled volume, which implies that pulsesink volume
can no longer be controlled by Mopidy. This is likely something we have to
break, or at least rethink for multiple output support any way.
With this change we now have software volume after our large queue, which
means volume changes should happen much faster.
2015-04-03 14:43:44 +02:00
Thomas Adamcik
2234a04fc7
audio: Make outputs helper only handle tee-ing.
...
The queue which is needed for gapless has been moved up to a
audio-sink bin which also wraps the outputs.
2015-04-03 14:43:44 +02:00
Thomas Kemmer
a9393c3850
m3u: Replace slashes in playlist names with pipes.
2015-03-25 05:36:03 +01:00
Stein Magnus Jodal
394081ae27
core: Add quotes around 'exact' in warning
2015-03-25 00:40:59 +01: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
Stein Magnus Jodal
a8e6cd26dc
core: Warn if backend does not implement as_list()
...
Fixes #1080
2015-03-24 23:40:50 +01:00
Thomas Adamcik
779a399c59
main: Use timer.time_logger helper
2015-03-24 20:09:17 +01:00
Thomas Adamcik
141c14ad45
core: Add exact to search() and deprecate find_exact()
...
Backends that still implement find_exact will be called without exact as an
argument to search, and we will continue to use find_exact. Please remove
find_exact from such backends and switch to the new search API.
2015-03-24 09:31:03 +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
3ceb16095d
utils: Install TRACE log level add module import time.
2015-03-24 08:46:52 +01:00
Stein Magnus Jodal
45ce75586e
mpd: Use get_playlists() in listplaylists
2015-03-24 01:54:07 +01:00
Stein Magnus Jodal
af727bba4e
mpd: Use as_list() to build URI-to-MPD-name map
2015-03-24 01:25:41 +01:00
Stein Magnus Jodal
f48a8ad938
mpd: Move playlist.lookup() out of helper
2015-03-24 01:21:43 +01:00
Stein Magnus Jodal
e06c7708a7
utils: Add time_logger context manager
2015-03-24 01:04:26 +01:00
Stein Magnus Jodal
4e30fb2f48
core: Make get_playlists() maintain folder hierarchy
2015-03-24 00:40:55 +01:00
Thomas Adamcik
24fe242d56
core/backend: Remove find_exact from backends
...
Functionality has been replaced with an `exact` param in the search method.
Backends that still implement find_exact will continue being called via
the old method for now.
2015-03-23 23:55:03 +01:00
Thomas Adamcik
636d8f1115
core: Add verionadded annotations to LibraryController methods
2015-03-23 23:16:35 +01:00
Thomas Adamcik
81f2e5c6f0
core: Deprecate empty queries ( Fixes #1072 )
2015-03-23 23:09:31 +01:00
Stein Magnus Jodal
07cf962434
Merge branch 'develop' into feature/new-playlists-api
...
Conflicts:
docs/changelog.rst
2015-03-23 21:45:32 +01:00
Thomas Adamcik
f4452b22db
core: Minor readability improvement
2015-03-23 15:02:37 +01:00
Stein Magnus Jodal
c0f99466c3
m3u: Remove playlists property
2015-03-23 13:31:42 +01:00
Stein Magnus Jodal
6815868e24
core: Doc Playlist.last_modified not being set
...
...if get_playlists() is called with include_tracks=False
2015-03-23 13:22:52 +01:00
Thomas Adamcik
6d22c4fd59
core: Remove set_current_tl_track
2015-03-23 00:50:05 +01:00
Thomas Adamcik
07f0453c6e
core: Make event triggers internal
2015-03-23 00:50:05 +01:00
Thomas Adamcik
fd04cd918f
core: Remove on_error_step from play arguments
2015-03-23 00:50:05 +01:00
Thomas Adamcik
ca02dbb676
core: Make change_track internal as it going away in 1.x
2015-03-23 00:50:05 +01:00
Stein Magnus Jodal
df604bb3e5
core: Deprecated playlists.filter()
2015-03-23 00:49:56 +01:00
Stein Magnus Jodal
d37bd62bb1
backend: Remove playlists.playlists property
2015-03-23 00:44:39 +01:00
Stein Magnus Jodal
e3f2e368c7
m3u: Add playlists.get_items()
2015-03-23 00:44:39 +01:00
Stein Magnus Jodal
4bae9c874c
m3u: Add playlists.as_list()
2015-03-23 00:44:39 +01:00
Stein Magnus Jodal
bd2e4f7af0
core: Reimplement get_playlists() using new backend API
2015-03-23 00:44:39 +01:00
Stein Magnus Jodal
4f3a0839b3
core: Add playlists.as_list() and playlists.get_items(uri)
2015-03-23 00:44:39 +01:00
Stein Magnus Jodal
55b1eb7383
backend: Add playlists.as_list() and playlists.get_items(uri)
2015-03-23 00:44:39 +01:00
Stein Magnus Jodal
9462071e0c
Merge pull request #1074 from adamcik/fix/1069-handle-broken-backends
...
core: Protect against old clients that implement backend.play
2015-03-23 00:05:05 +01:00
Thomas Adamcik
a74bc24bdc
core: Protect against old clients that implement backend.play
2015-03-22 23:54:37 +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
5eebab6e18
Merge pull request #1071 from adamcik/fix/change-track-failure-should-fail-playback
...
core: Update playback code to take change track into account.
2015-03-22 23:18:13 +01:00
Nick Steel
08f729de76
docs: fix translate_uri method reference
2015-03-22 21:30:50 +00:00
Thomas Adamcik
efe9430c7a
core: Update playback code to take change track into account.
...
This change has us checking the return value of change_track when deciding if
the play call was a success or if the track is unplayable. Which ensures that
the following can no longer happen: 1) play stream 2) play stream that fails
change_track 3) stream 1) continues playing. Correct behavior being the next
stream playing instead.
2015-03-22 22:12:51 +01:00
Thomas Kemmer
67d4dac862
m3u: Store by URI internally
...
Based upon tkem's PR #1053
2015-03-22 21:54:29 +01:00