Skip to content

Commit

Permalink
Correct API Param on banner
Browse files Browse the repository at this point in the history
  • Loading branch information
the-jeffski committed Nov 21, 2022
1 parent 254b508 commit dc1d420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/medusa/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def add_banner(self, lst_images, directory, banner, id, card_items, del_images):
if banner in del_images:
del_images.remove(banner)
else:
img_data = requests.get("{0}://{1}:{2}/api/v1/{4}/?cmd=show.getbanner&indexerid={4}".format(self.protocol, self.host, self.port, self.web_root, self.token, id))
img_data = requests.get("{0}://{1}:{2}/api/v1/{4}/?cmd=show.getbanner&indexerid={5}".format(self.protocol, self.host, self.port, self.web_root, self.token, id))

if not img_data.status_code.__eq__(200):
return ""
Expand Down

0 comments on commit dc1d420

Please sign in to comment.