Exemple #1
0
 def set_logo_from_steam(self):
     """Fetch the banner from Steam and use it for the game"""
     if self.title_logo or not self.steamid:
         return
     self.title_logo = ContentFile(
         steam.get_capsule(self.steamid), "%s.jpg" % self.steamid
     )
Exemple #2
0
 def download_steam_capsule(self):
     if self.title_logo or not self.steamid:
         return
     else:
         self.title_logo = ContentFile(steam.get_capsule(self.steamid),
                                       "%d.jpg" % self.steamid)
Exemple #3
0
 def set_logo_from_steam(self):
     if self.title_logo or not self.steamid:
         return
     self.title_logo = ContentFile(
         steam.get_capsule(self.steamid), "%s.jpg" % self.steamid
     )
Exemple #4
0
 def download_steam_capsule(self):
     if self.title_logo or not self.steamid:
         return
     else:
         self.title_logo = ContentFile(steam.get_capsule(self.steamid),
                                       "%d.jpg" % self.steamid)