2023-01-30, 06:41
Hello @Angelinas .
TEST REPORT:
I have tested your change.
The channel logos are displayed!
Now the problems:
Recordings = are no longer displayed
Timers = are no longer displayed
PvrBackground (script.skin.helper.backgrounds) = is no longer displayed
"$INFO[Window(Home).Property(ListItem.ChannelLogo)]" = has no function anymore
And the old problem:
With widget setting "PVR TV Channels widget" (Landscape) squashed posters are displayed again.
Behaviour with original SHS addons (no changes):
"PVR TV Channels widget" channel logos = are no longer displayed
Recordings = works
Timers = works
PvrBackground (script.skin.helper.backgrounds) = works
"$INFO[Window(Home).Property(ListItem.ChannelLogo)]" = has no function anymore
And the old problem:
With widget setting "PVR TV Channels widget" (Landscape) squashed posters are displayed again.
I was able to solve almost all problems, but unfortunately I lack the python knowledge.
MY CHANGE:
pvr.py (script.skin.helper.widgets): https://forum.kodi.tv/showthread.php?tid...pid3134382
change kodidb.py (script.module.metadatautils):
"PVR TV Channels widget" channel logos = are no longer displayed !!
Recordings = works
Timers = works
PvrBackground (script.skin.helper.backgrounds) = works
"$INFO[Window(Home).Property(ListItem.ChannelLogo)]" = works
"PVR TV Channels widget" (Landscape) with pvr_artwork = works
I think the problem now is to integrate either "replace" or "split" into the definition of "process_channel".
I will send you a test version of Titan_mod later.
The version from my repo should be sufficient for testing.
I hope you have an idea.
TEST REPORT:
I have tested your change.
The channel logos are displayed!
Now the problems:
Recordings = are no longer displayed
Timers = are no longer displayed
PvrBackground (script.skin.helper.backgrounds) = is no longer displayed
"$INFO[Window(Home).Property(ListItem.ChannelLogo)]" = has no function anymore
And the old problem:
With widget setting "PVR TV Channels widget" (Landscape) squashed posters are displayed again.
Behaviour with original SHS addons (no changes):
"PVR TV Channels widget" channel logos = are no longer displayed
Recordings = works
Timers = works
PvrBackground (script.skin.helper.backgrounds) = works
"$INFO[Window(Home).Property(ListItem.ChannelLogo)]" = has no function anymore
And the old problem:
With widget setting "PVR TV Channels widget" (Landscape) squashed posters are displayed again.
I was able to solve almost all problems, but unfortunately I lack the python knowledge.
MY CHANGE:
pvr.py (script.skin.helper.widgets): https://forum.kodi.tv/showthread.php?tid...pid3134382
change kodidb.py (script.module.metadatautils):
python:if "channellogo" in item:
properties["channellogo"] = item["channellogo"].replace("pvrchannel_tv@", "")
properties["channelicon"] = item["channellogo"].replace("pvrchannel_tv@", "")
"PVR TV Channels widget" channel logos = are no longer displayed !!
Recordings = works
Timers = works
PvrBackground (script.skin.helper.backgrounds) = works
"$INFO[Window(Home).Property(ListItem.ChannelLogo)]" = works
"PVR TV Channels widget" (Landscape) with pvr_artwork = works
I think the problem now is to integrate either "replace" or "split" into the definition of "process_channel".
python:def process_channel(self, channeldata):
'''transform the json received from kodi into something we can use'''
item = {}
channelname = channeldata["label"]
channellogo = self.metadatautils.get_clean_image(channeldata['thumbnail'])
if channeldata.get('broadcastnow'):
# channel with epg data
item = channeldata['broadcastnow']
item["runtime"] = item["runtime"] * 60
item["genre"] = " / ".join(item["genre"])
# del firstaired as it's value doesn't make any sense at all
del item["firstaired"]
# append artwork
if self.enable_artwork:
self.metadatautils.extend_dict(
item, self.metadatautils.get_pvr_artwork(
item["title"], channelname, item["genre"]))
else:
# channel without epg
item = channeldata
item["title"] = xbmc.getLocalizedString(161)
item["file"] = "plugin://script.skin.helper.service?action=playchannel&channelid=%s"\
% (channeldata["channelid"])
item["channel"] = channelname
item["type"] = "channel"
item["label"] = channelname
item["channelid"] = channeldata["channelid"]
if not channellogo:
channellogo = self.metadatautils.get_channellogo(channelname)
if channellogo:
if not item.get("art"):
item["art"] = {}
if not item["art"].get("fanart"):
item["art"]["fanart"] = channellogo
if not item["art"].get("thumb"):
item["art"]["thumb"] = channellogo
item["channellogo"] = channellogo
item["isFolder"] = False
return item
I will send you a test version of Titan_mod later.
The version from my repo should be sufficient for testing.
I hope you have an idea.