- changed status to resolved
Allow multiple genre values to be displayed in event information
Currently, the EventName converter only displays the first genre (content descriptor) value in EPG data is there is more than one.
The C++ API has methods that can fetch either the first genre item (eServiceEvent::getGenreData(ePtr<eGenreData> &dest) const
), or a list of them (PyObject *eServiceEvent::getGenreData() const
), and while they have different signatures in C++, they have the same signature in SWIG/Python, and only the first is accessible.
The PyObject *eServiceEvent::getGenreData() const
method needs to be distinguished from the other method, possibly by a method name change, so that it is accessible from Python.
An additional GenreList
converter option is needed in the EventName
converter to display the list of genres instead of a single genre.
While the FTA EPG only has a single genre item per event, IceTV can have more (see issue #651)
Comments (1)
-
- Log in to comment
Fix issue
#650: Allow multiple genre values to be displayed in event informationAdd new methods PyObject eServiceEvent::getGenreDataList() const and PyObject eServiceEvent::getParentalDataList() const so that their Python/SWIG API signatures are differentiated from RESULT eServiceEvent::getGenreData(ePtr<eGenreData> &dest) const and RESULT eServiceEvent::getParentalData(ePtr<eParentalData> &dest) const
Add PyObject *eServiceEvent::getComponentDataList() const for consistent naming.
Re-implement PyObject getComponentData() const, PyObject getGenreData() const and PyObject *getComponentData() const as deprecated inline methods that call the respective new methods.
Add new GenreList type to the EventName converter to allow skin access to the new genre list retrieval method.
The Rating types for the EventName converter have been left unchanged because the use of a ratings list is more complicated is no way to test the code for multiple country identifiers in Australian EPGs.
→ <<cset b2fdc932adb5>>