mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 09:26:57 -05:00
wrap ID with str
This commit is contained in:
parent
17daf80b1d
commit
b9a1ec7152
@ -28,13 +28,12 @@ class imageHandler():
|
|||||||
return image, imagetype
|
return image, imagetype
|
||||||
|
|
||||||
def get_epg_image(self, request_args):
|
def get_epg_image(self, request_args):
|
||||||
imageUri = self.epghandling.get_thumbnail(request_args["type"], request_args["id"])
|
imageUri = self.epghandling.get_thumbnail(request_args["type"], str(request_args["id"]))
|
||||||
if not imageUri:
|
if not imageUri:
|
||||||
return self.generate_image(request_args["type"], request_args["id"])
|
return self.generate_image(request_args["type"], str(request_args["id"]))
|
||||||
|
|
||||||
req = requests.get(imageUri)
|
req = requests.get(imageUri)
|
||||||
return req.content
|
return req.content
|
||||||
# return self.generate_image(request_args["type"], request_args["id"])
|
|
||||||
|
|
||||||
def getSize(self, txt, font):
|
def getSize(self, txt, font):
|
||||||
testImg = PIL.Image.new('RGB', (1, 1))
|
testImg = PIL.Image.new('RGB', (1, 1))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user