Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ims21 opened this issue Nov 22, 2022 · 6 comments
Open
Labels
BUG 🐞 Not working as expected

Comments

@ims21
Copy link
Contributor

ims21 commented Nov 22, 2022

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

@ims21 ims21 added the BUG 🐞 Not working as expected label Nov 22, 2022
@wedebe
Copy link
Collaborator

wedebe commented Jan 20, 2023

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

@ims21
Copy link
Contributor Author

ims21 commented Jan 21, 2023

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

@ims21
Copy link
Contributor Author

ims21 commented Jan 22, 2023

error is generated here

@ims21
Copy link
Contributor Author

ims21 commented Jan 22, 2023

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
Copy link
Contributor Author

ims21 commented Jan 22, 2023

but I do not know, what then genreId.

And it seems, genre is not used in owif

@jbleyel
Copy link
Contributor

jbleyel commented Jan 22, 2023

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
 },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG 🐞 Not working as expected
Projects
None yet
Development

No branches or pull requests

3 participants