Unknown media kind on AppleTV

When playing a TV show/serie on an AppleTV the AppleTV component displays “Nothing Playing” and gives an error in the logs.

It seems the component doesn’t recognize the media kind “TV Show”. When playing other media kind like a movie of music all is OK.

Traceback (most recent call last): File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step result = coro.send(None) File “/srv/hass/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 341, in _async_process_entity new_entity, self, update_before_add=update_before_add File “/srv/hass/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 209, in async_add_entity yield from entity.async_update_ha_state() File “/srv/hass/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 227, in async_update_ha_state attr = self.state_attributes or {} File “/srv/hass/lib/python3.5/site-packages/homeassistant/components/media_player/init.py”, line 846, in state_attributes in ATTR_TO_PROPERTY if getattr(self, attr) is not None File “/srv/hass/lib/python3.5/site-packages/homeassistant/components/media_player/init.py”, line 846, in in ATTR_TO_PROPERTY if getattr(self, attr) is not None File “/srv/hass/lib/python3.5/site-packages/homeassistant/components/media_player/apple_tv.py”, line 159, in media_content_type media_type = self._playing.media_type File “/srv/hass/lib/python3.5/site-packages/pyatv/internal/apple_tv.py”, line 188, in media_type return convert.media_kind(mediakind) File “/srv/hass/lib/python3.5/site-packages/pyatv/convert.py”, line 17, in media_kind raise exceptions.UnknownMediaKind('Unknown media kind: ’ + str(kind)) pyatv.exceptions.UnknownMediaKind: Unknown media kind: 64

This media kind is missing in pyatv which is obviously a bug. Please write an issue in https://github.com/postlund/pyatv/issues and I’ll fix it for the next release. Thanks for reporting!

i posted the issue on github.
Thanks for your hard work!

Fixed made and merged, will make sure this makes it for the next home assistant release together with some other goodies. Thanks again for reporting!