2015-12-05, 16:54
i'd say you use totally unrecommended way of calling the player. A plugin should not decide what player to use.
if you see this
Edit:
Seriously this is just plain wrong and i will make sure that code dies from the Python API soon.
if you see this
Quote:AttributeError: 'module' object has no attribute 'PLAYER_CORE_DVDPLAYER'you are doing it wrong since many versions. Certainly not a Kodi problem cause that method was deprecated long time ago and now finally killed from core code.
Edit:
PHP Code:
def GetPlayer(textOnly=False):
""" Get's the default player. this is only used for raspberry pi. """
try:
settingIndex = int(AddonSettings.__GetSetting(AddonSettings.__RPI_PLAYER) or 0)
if textOnly:
return ["Auto", "DVDPlayer"][settingIndex]
else:
return [xbmc.PLAYER_CORE_AUTO, xbmc.PLAYER_CORE_DVDPLAYER][settingIndex]
except Exception, e:
Logger.Warning("Error determining the Player Core in Kodi, falling back to PLAYER_CORE_AUTO:\n%s", e.message)
return xbmc.PLAYER_CORE_AUTO
Seriously this is just plain wrong and i will make sure that code dies from the Python API soon.