Assuming that your Apple TV 2 is jailbroken, you can install Kodi media player on your jail broke device.

For those that have an existing copy of XBMC on their Apple TV 2, i suggest completely removing XBMC along with dependencies and settings and installing a fresh copy of Kodi.

At the time of this writing, I’m only aware of the use of Terminal on OS X to install Kodi. So here’s how we’re going to update Kodi on Apple TV 2:

Uninstall XBMC

Uninstall XBMC dependencies

Uninstall XBMC settings

Install Kodi

Uninstall XBMC via Terminal

apt-get remove org.xbmc.xbmc-atv2

It will if you want to continue
The following packages will be REMOVED:
org.xbmc.kodi-atv2
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?