Seen some EPG XML files with program entries containing <desc ... /> and <sub-title ... />.
Apparently if description and sub-title are empty (and maybe other fields, those were the only 2 I've seen as such so far - even tested transforming them into <desc ...>, etc...), the program enumeration in the enumFile function try/except block gets an exception and logs a parsing error. The rest of the program is perfectly valid, though, so that's wasteful.
I've tested the below, and it seems to work pretty well. Maybe the same can be applied to other fields of the program, with defaults being whatever makes sense?
Seen some EPG XML files with program entries containing <desc ... /> and <sub-title ... />.
Apparently if description and sub-title are empty (and maybe other fields, those were the only 2 I've seen as such so far - even tested transforming them into <desc ...>, etc...), the program enumeration in the enumFile function try/except block gets an exception and logs a parsing error. The rest of the program is perfectly valid, though, so that's wasteful.
I've tested the below, and it seems to work pretty well. Maybe the same can be applied to other fields of the program, with defaults being whatever makes sense?