e2openplugin-OpenWebif icon indicating copy to clipboard operation
e2openplugin-OpenWebif copied to clipboard

[OpenWebif] [EPGEvent] Error: object of type 'eGenreDataPtr' has no len()

Open ims21 opened this issue 3 years ago • 6 comments

in debug is time to time message: [OpenWebif] [EPGEvent] Error: object of type 'eGenreDataPtr' has no len()

ims21 avatar Nov 22 '22 18:11 ims21

Hi @ims21 , when does this happen? (individual program details, channel epg, full epg, etc...)

wedebe avatar Jan 20 '23 13:01 wedebe

Open "EPG" or click on event name in TV channel (both classic / new). Then in debug you can see it. obrazek

ims21 avatar Jan 21 '23 16:01 ims21

error is generated here

ims21 avatar Jan 22 '23 09:01 ims21

There could be something as: try: if val is not None: if isinstance(val, list): ... old code else: return getGenreStringSub(val.getLevel1(), val.getLevel2()), 0 and import from Components.Converter.genre import getGenreStringSub

ims21 avatar Jan 22 '23 11:01 ims21

but I do not know, what then genreId.

And it seems, genre is not used in owif

ims21 avatar Jan 22 '23 11:01 ims21

It's perfectly working in version 2.0

{
  "id": 30169,
  "begin_timestamp": 1674392400,
  "duration_sec": 180,
  "title": "Tagesschau",
  "shortdesc": "",
  "longdesc": "Die Nachrichten der ARD",
  "sref": "1:0:19:283D:3FB:1:C00000:0:0:0:",
  "sname": "Das Erste HD",
  "now_timestamp": 1674390083,
  "remaining": 2497,
  "genre": "Nachrichten/Aktuelles: Nachrichten (allgemein)",
  "genreid": 32
 },

jbleyel avatar Jan 22 '23 12:01 jbleyel