Commit Graph

6190 Commits

Author SHA1 Message Date
Stein Magnus Jodal
abe9b7aea7 docs: Initial cleanup of v0.20 changelog 2015-03-14 01:27:28 +01:00
Stein Magnus Jodal
bb737e92c2 Merge pull request #1036 from jodal/feature/track-last-modified-as-ms
models: Change Track.last_modified from seconds to ms (fixes #678)
2015-03-14 01:26:55 +01:00
Stein Magnus Jodal
51b83f0f05 Merge pull request #1030 from adamcik/feature/stream-reference
Rework current metadata track to something ref based
2015-03-14 00:39:29 +01:00
Thomas Adamcik
6260ba00be core: Test stream_title_changed listener 2015-03-14 00:30:46 +01:00
Thomas Adamcik
67f9bd73bf Merge branch 'develop' into feature/stream-reference
Conflicts:
	docs/changelog.rst
2015-03-14 00:28:51 +01:00
Thomas Adamcik
36fe8321b1 docs: Add changelog entry for stream title stuff 2015-03-14 00:25:20 +01:00
Thomas Adamcik
6d50f835a4 review: docstring update for mpd translator 2015-03-14 00:22:22 +01:00
Thomas Adamcik
ea97047607 flake8: Fix bad import 2015-03-14 00:10:21 +01:00
Stein Magnus Jodal
3a61445519 models: Change Track.last_modified from seconds to ms 2015-03-14 00:06:23 +01:00
Thomas Adamcik
4db4b4d63b core: Reduce stream metadata to just the title
The API I really want for this to support regular tracks, stream updates and
dynamic playlists is still unclear to me. As such I'm taking the KISS approach
and reducing this to just the stream title and nothing else.

If all goes as planed this will be replaced by playback_track_changed(tlid, ref)
style events and other improvements in a later version.
2015-03-13 23:56:51 +01:00
Thomas Adamcik
980e04537b Merge pull request #1035 from jodal/feature/none-mixer-adjustments
core/mpd: None-mixer adjustments
2015-03-13 23:31:20 +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
6b7f9b4899 docs: Add changelog for the scanner improvements 2015-03-13 22:45:57 +01:00
Thomas Adamcik
faab0b755a audio: Filter for messages we care about, rest will be dropped 2015-03-13 22:39:52 +01:00
Thomas Adamcik
9e8b3263ab audio: Use timed pop for message loop and gst clocks 2015-03-13 22:36:35 +01:00
Stein Magnus Jodal
4ce16ce638 docs: Fix header marker 2015-03-13 21:31:33 +01:00
Stein Magnus Jodal
9adb2c86a9 mpd: Make code read better
The result of set_mute() and set_volume() is always True or False, never
another falsy value like None.
2015-03-13 21:24:04 +01:00
Stein Magnus Jodal
b29f9e10c4 core: get_mute() with no mixer returns None
...and not False, because the mute state is unknown (None) and not
unmuted (False) when there is no mixer.

Note that this change does not affect the MPD responses.
2015-03-13 21:19:56 +01:00
Stein Magnus Jodal
e4ef6d13ca core: Correct mixer.set_volume() docstring 2015-03-13 21:04:37 +01:00
Thomas Adamcik
2744a2b8a8 Merge pull request #1034 from tkem/docs/mopidy-mobile
docs: Replace Mopidy-HTTP-Kuechenradio with Mopidy-Mobile.
2015-03-13 19:38:02 +01:00
Thomas Kemmer
73bb6c2a8a Replace Mopidy-HTTP-Kuechenradio with Mopidy-Mobile. 2015-03-13 19:10:57 +01:00
Thomas Adamcik
083ec130f9 Merge pull request #1015 from ZenithDK/feature/mixer_none
core/mpd: Allow empty or 'none' as audio.mixer value
2015-03-13 17:57:51 +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
628c828087 audio: Recreate scan pipeline for each scan
Turns out this code runs a lot faster when we fully destroy the decodebins
between scans. And since going to NULL isn't enough I opted to just go for
redoing the whole pipeline instead of adding and removing decodebins all the
time.

As part of this almost all the logic has been ripped out of the scan class and
into internal functions. The external interface has been kept the same for now.
But we could easily switch to `scan(uri, timeout=1000, proxy=None)`
2015-03-13 00:23:01 +01:00
Thomas Adamcik
411bae5a56 audio: Raise error for unknown protocol types 2015-03-12 23:21:53 +01:00
Thomas Adamcik
9c9d05be36 audio: Only warn about missing plugin on errors 2015-03-12 22:11:50 +01:00
Thomas Adamcik
837f2de629 audio: Add typefinder to scanner and add mime to result
This should allow us to move playlist handling out of GStreamer
as we will short circuit for text/* and application/xml now.
2015-03-12 22:11:50 +01:00
Thomas Adamcik
c93eaad7ed audio: Try and reuse source when we can 2015-03-12 22:11:50 +01:00
Thomas Adamcik
24cceb69eb audio: Going to ready is pointless in this code. 2015-03-12 22:11:50 +01:00
Thomas Adamcik
cd579ff7bb audio: Going to NULL already handles the flushing for us 2015-03-12 22:11:50 +01:00
Thomas Adamcik
ccd3753b30 audio: Switch to decodebin2 in scanner and handle our own sources
This is needed to be able to put in our own typefind and catch playlists before
they make it to the decoder.
2015-03-12 22:11:50 +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
f4e6956bb7 audio: Catch missing plugins in scanner for better error messages 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
Stein Magnus Jodal
9a507e17df docs: Improve pointer to contribution page 2015-03-11 19:42:33 +01:00
Thomas Adamcik
6fcd43891e core: Switch to reference based stream info.
- Adds tests for new behaviors in core.
- Adds stream name to MPD format (fixes #944)
- Adds 'stream_changed' core event (needs a new name/event)
- Adds 'get_stream_reference' (which I'm also unsure about)

The bits I'm unsure about are mostly with respect to #270, but I'm going ahead
with this commit so we can discuss the details in PR with this code as an
example.
2015-03-10 21:55:51 +01:00
Stein Magnus Jodal
20e95eac07 docs: Fix rST syntax error 2015-03-10 18:34:49 +01:00
Lasse Bigum
cb19b2c48c Allow 'none' as audio.mixer value
To disable mixing altogether, you can now set the configuration value
 audio/mixer to 'none'.
2015-03-10 00:26:22 +01:00
Thomas Adamcik
e639b2b18b tests: Add method for emitting fake tags changed in tests 2015-03-09 21:55:23 +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
Stein Magnus Jodal
714ff0d64a docs: Fix real name of four contributors 2015-03-08 21:16:34 +01:00
Thomas Kemmer
0f52316d77 docs: Add PR #1028 to changelog 2015-03-08 19:04:57 +01:00
Stein Magnus Jodal
2b6d3dd984 Merge pull request #1029 from ZenithDK/fix/tests_for_current_track
Add tests for PlaybackController get_current_(tl_)track
2015-03-08 10:42:47 +01:00
Lasse Bigum
cf0b666a0a Add tests for PlaybackController get_current_(tl_)track
Add some more test cases for PlaybackController
2015-03-08 04:10:02 +01:00
Thomas Adamcik
a279285609 Merge pull request #1025 from tkem/fix/1023
Fix #1023: Remove support for local album images from coverartarchive.org
2015-03-08 00:10:21 +01:00
Thomas Kemmer
94c418d5e6 Fix #1026: Sort local playlists by name. 2015-03-07 22:42:22 +01:00
Thomas Kemmer
8d2cedcc69 Remove changelog entry for #802. 2015-03-06 19:31:54 +01:00
Thomas Kemmer
9150c34053 Fix #1023: Remove support for local album images from coverartarchive.org 2015-03-06 10:02:08 +01:00