2017-09-06, 01:48
I found a little bug of sorts when exercising the nextpvr addin. NextPVR does not seem to provide any channel information for the 'recordings' window and this trips the following code in the metadatautils addon:
in lib/helpers/pvrartwork.py:
def pvr_artwork_options(self, title, channel, genre):
'''show options for pvr artwork'''
# if not channel and genre:
# channel, genre = self.get_pvr_channel_and_genre(title)
ignorechannels = self._mutils.addon.getSetting("pvr_art_ignore_channels").split("|")
the problem is that you attempt to call get_pvr_channel_and_genre which is not defined in the class. Perhaps this code went walkabout or was planned but never implemented?
in lib/helpers/pvrartwork.py:
def pvr_artwork_options(self, title, channel, genre):
'''show options for pvr artwork'''
# if not channel and genre:
# channel, genre = self.get_pvr_channel_and_genre(title)
ignorechannels = self._mutils.addon.getSetting("pvr_art_ignore_channels").split("|")
the problem is that you attempt to call get_pvr_channel_and_genre which is not defined in the class. Perhaps this code went walkabout or was planned but never implemented?