Ejemplo n.º 1
0
 def _onEmblemReceived(self, size, emblemID, callback, handler, emblem):
     imgSize = getImageSize(emblem)
     if imgSize != size:
         LOG_WARNING('Received club emblem has invalid size, use default instead', imgSize, size, emblemID, callback, handler, type(emblem))
         emblem = self._getDefaultImage(size)
     handler(emblemID, emblem)
     if callback is not None:
         callback(emblemID, emblem)
Ejemplo n.º 2
0
 def _onEmblemReceived(_, emblem):
     imgSize = getImageSize(emblem)
     if imgSize != size:
         LOG_WARNING('Received emblem has invalid size, use default instead', imgSize, size, url, type(emblem))
         emblem = defaultEmblemGetter(size)
     callback(emblem)
Ejemplo n.º 3
0
 def _onEmblemReceived(_, emblem):
     imgSize = getImageSize(emblem)
     if imgSize != size:
         LOG_WARNING('Received emblem has invalid size, use default instead', imgSize, size, url, type(emblem))
         emblem = defaultEmblemGetter(size)
     callback(emblem)