Barry Williams

Results 5 comments of Barry Williams

That looks just the thing. We could ideally provide the following as type params: ``` javascript [{ mediaType: 'application/vnd.linn.space-configuration+json', version: 1 }, { mediaType: 'application/vnd.linn.sapce-configuration+json', version: 2 }, { mediaType:...

Yes, using type-is to match the entire string including version does work, but doesn't provide much additional benefit over comparing the header directly.

Sorry I wasn't clear. If you run the following code: ``` javascript var is=require('type-is'); var req = { headers: { 'content-type': 'application/vnd.linn.test+json; version=1', 'transfer-encoding': 'chunked' } }; //Should be false...

Cheers for the workaround, I'd definitely prefer the library to do this so will fork tomorrow for a future PR.

Hi, you should be able to extract the artist and title from the media player attributes. For example: ``` {{ state_attr('media_player.openhome_uuid_4c494e4e_0026_0f21_e768_01357060013f', 'media_title' ) }} {{ state_attr('media_player.openhome_uuid_4c494e4e_0026_0f21_e768_01357060013f', 'media_artist' ) }} ```