Add getPlayerIconByPath to playerFactory

This commit is contained in:
Etoh 2013-10-15 00:49:38 +01:00
parent 6e4c19e50b
commit b0944c8aa3

View File

@ -15,6 +15,12 @@ class PlayerFactory(object):
if(player.isValidPlayerPath(path)):
return player
def getPlayerIconByPath(self, path):
for player in self._players:
if(player.isValidPlayerPath(path)):
return player.getIconPath(path)
return None
def getExpandedPlayerPathByPath(self, path):
for player in self._players:
if(player.isValidPlayerPath(path)):