Skip to content

Commit

Permalink
Fixed: BVN Images did not show (Fixes #1864).
Browse files Browse the repository at this point in the history
  • Loading branch information
basrieter committed Nov 23, 2024
1 parent 3c0ff40 commit b4c2422
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ _None_
* Fixed: NPO Plus content not showing (Fixes #1862).
* Fixed: Some TV4 content (with encryption) was not playing (Fixes #1853).
* Fixed: Revoking a device from Videoland.nl broke Retrospect listing (Fixes #1852).
* Fixed: BVN Images did not show (Fixes #1864).
10 changes: 8 additions & 2 deletions channels/channel.nos/bvntv/chn_bvntv.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ def create_episode_item(self, result_set):
if not item.url.endswith("/"):
item.url = "{}/".format(item.url)

item.thumb = "{}{}".format(self.baseUrl, result_set["thumburl"])
thumb_url = result_set["thumburl"]
if "://" not in thumb_url:
item.thumb = "{}{}".format(self.baseUrl, thumb_url)

item.fanart = item.thumb.replace("600/338", "1280/720")
return item

Expand All @@ -117,7 +120,10 @@ def create_video_item(self, result_set):
# date_time = DateHelper.get_date_from_string(date_value, "% Y-%m-%d %H:%M:%S")
# item.set_date(*date_time[0:6])

item.thumb = "{}{}".format(self.baseUrl, result_set["thumburl"])
thumb_url = result_set["thumburl"]
if "://" not in thumb_url:
item.thumb = "{}{}".format(self.baseUrl, thumb_url)

item.metaData["pow"] = result_set["pow"]

return item
Expand Down

0 comments on commit b4c2422

Please sign in to comment.