Jan Losinski
5c807c6bd9
MPD: Reconnect mpd client afetr OSError ( #4651 )
...
If the mpd client ran into an socket timeout, the socket will raise an
OSError on every further request. This adds OSError to the list of
excptions, that causes a client reconnect.
This fixes #4650
Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
2016-12-01 12:28:31 -08:00
Jan Losinski
dd84b4e237
Mpd: Use "file" instead "id" for media_content_id ( #4653 )
...
In media_content_id() the "id" of the current song was returned. as
stated in bug #4652 the id is only the Tracklist-Id in the current
tracklist and is omitted if the track is not part of a tracklist (what
caused the bug in the first place).
To match the semantics described in the dockstring, to return a "Content
ID", this chooses the filename of the current song as id and returns
it.
It also uses get() instead of [] to prevent KeyError.
This fixes bug #4652
Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
2016-12-01 12:20:42 -08:00
Paulus Schoutsen
ee5f228309
Make services yield ( #4187 )
...
* Make services yield
* Disable pylint abstract-method check
* add input_select
* add input_slider
* change to async vers.
* fix lint
* yield on add_entities as other components does
2016-11-03 18:32:14 -07:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Fabian Affolter
909b5ffa5b
Migrate to voluptuous ( #3202 )
...
🐬
2016-09-05 09:51:18 -06:00
Alexander Fortin
a4409da700
Add add_uri_to_queue support to (sonos) media player ( #1946 )
...
Sonos (SoCo) supports add_uri_to_queue capability, making it possible
to stream media available via HTTP for example. This patch extends
media_player component and sonos platform to support this feature
2016-05-19 23:30:19 -07:00
happyleavesaoc
c341ae0a39
Media Player - MPD: handle more exceptions ( #2045 )
2016-05-11 21:53:56 -07:00
Dan Cinnamon
a482c4b2a1
Allow mpd to handle the play_media service. ( #1831 )
...
Even though there's not really a place in the UI for it, it will now be possible to set a playlist as part of a script, and ultimately a scene.
2016-04-17 12:34:33 -07:00
Fabian Affolter
565ae8d30f
Upgrade python-mpd2 to 0.5.5
2016-03-24 08:07:06 +01:00
Fabian Affolter
cf7c2c492a
Fix PEP257 issues
2016-03-08 10:34:33 +01:00
Paulus Schoutsen
e80309c03c
Fix imports (using isort)
2016-02-18 21:27:50 -08:00
Paulus Schoutsen
cbc6323438
Fix imports
2016-01-28 21:45:26 -08:00
Richard Arends
913c5ab47c
identing error... sorry
2015-12-30 13:26:42 +01:00
Richard Arends
429904c437
Returning None when name and title are both not available
...
Removed trailing whitespaces
2015-12-30 13:00:34 +01:00
Richard Arends
56a2ffca1d
Changed if else statements. The following situations are handled now:
...
- name and title can be None
- name can be None
- title can be None
- name and title can contain data
2015-12-29 22:10:09 +01:00
Richard Arends
6e2fb17f19
Fix KeyError on 'title' when title is empty
2015-12-29 17:52:05 +01:00
Richard Arends
035d518cb6
Expect the case where currentsong['name'] can be absent. Use the .get
...
funtion with a default value set to None
2015-12-13 19:54:10 +01:00
Richard Arends
85b62a20c8
Use format instead of str.join to join name and title
2015-12-13 19:46:17 +01:00
Richard Arends
46f742f82f
Added support for MPD to display the name before the title if it is available
...
When using a radio stream, the name of the station is often available in
currentsong['name']. Just like the 'mpc' CLI client, this change displays
the name of the station before the current song title.
For example: "Mick Jagger - Let's Work" becomes "Radio 10: Mick Jagger - Let's Work"
2015-12-13 18:42:53 +01:00
Richard Arends
9eea7a6cde
Added support for MPD to start playing the current song/playlist
2015-12-12 16:25:56 +01:00
Fabian Affolter
97f9f8aa49
Update link to docs (Jekyll 3 update)
2015-11-09 13:12:18 +01:00
Fabian Affolter
6115be7c42
Remove configuration details
2015-10-23 18:13:45 +02:00
Fabian Affolter
1d910f3a84
Update docstring (config file) and attempt to honor PEP0257 more
2015-09-07 18:35:00 +02:00
Paulus Schoutsen
335eb10d11
Merge pull request #295 from renekliment/mpd-pause-fix
...
fixes MPD play/pause
2015-08-30 14:55:20 -07:00
René Kliment
62f6576e19
fixes MPD play/pause
2015-08-30 16:11:44 +02:00
René Kliment
41011f0c95
support for MPD password authorization
2015-08-30 15:53:40 +02:00
Ryan Kraus
893ae15042
Changed component REQUIREMENTS to absolute versions.
2015-08-29 21:39:50 -04:00
Paulus Schoutsen
940b2998ea
Add REQUIREMENTS list to components
2015-07-07 00:01:46 -07:00
Paulus Schoutsen
0f4de88b92
Fix PyLint import issue
2015-06-10 23:59:37 -07:00
Paulus Schoutsen
ae847994fc
MPD platform fixes
2015-06-10 23:51:38 -07:00
Paulus Schoutsen
5008b25a2d
Fix MPD media player support
2015-06-08 23:06:41 -07:00
Fabian Affolter
fb63198688
fix return values, disconnect from mpd, and fix pylint issue
2015-06-01 13:25:55 +02:00
Fabian Affolter
26c8d81dbf
add configuration desc
2015-05-31 22:21:11 +02:00
Fabian Affolter
ab4ed2e032
add check
2015-05-31 20:53:19 +02:00
Fabian Affolter
453b5a3e8c
add initial mpd
2015-05-31 20:53:18 +02:00