Example #1
0
 def background(self):
     if not self._background:
         self._background = \
             self.data.get('background_image') and \
             Api.images(self.data['background_image']['image_id']) \
             or ''
     return self._background
Example #2
0
 def thumb(self):
     if not self._thumb:
         try:
             if self.data.get('thumbnail_image'):
                 self._thumb = \
                     Api.images(self.data['thumbnail_image']['image_id'])
                 self._thumbHasTitle = \
                     self.data['thumbnail_image']['has_title']
         except Exception:
             logger.debug(f"thumb img: {self.data['thumbnail_image']}")
             self._thumbHasTitle = False
     return self._thumb
Example #3
0
 def thumb(self):
     if not self._thumb:
         image = self.thumbnail_image and \
             Api.images(self.thumbnail_image['image_id'])
         self._thumb = image or ''
     return self._thumb
Example #4
0
 def background(self):
     if not self._background:
         image = self.background_image and \
             Api.images(self.background_image['image_id'])
         self._background = image or ''
     return self._background