Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

[EPG] Store genre string when genreType/genreSubType are not available #150

Merged
merged 2 commits into from
Jul 17, 2011

Conversation

margro
Copy link

@margro margro commented Jul 9, 2011

Allows the usage of genre strings as backup for the iGenreType/iGenreSubType id's.
XBMC still prefers the existing iGenreType/iGenreSubType fields, because this allows for a colored EPG timeline view.
Unfortunately, not all PVR backends and (web) EPG sources can provide these type id's and the translation from all possible genre strings (even in local language) into id's is almost undoable.

This pull request adds the possibility to use genre strings instead. It won't give a colored EPG timeline, but it does show the genre string on the program info dialog.
Only when iGenreType is set to EPG_GENRE_USE_STRING, XBMC will store the provided string in its internal EPG database. For all other genre types, it uses its existing internal type/subtype to string translator.

See also:
http://forum.xbmc.org/showthread.php?t=104155

…nge!)

Will be used only when iGenreType==EPG_GENRE_USE_STRING.
Typical usage: PVR backend does not supply a GenreType/GenreSubType pair and the supplied genre string is non-standard
(e.g. cannot be translated into a Genre Type/SubType)
opdenkamp pushed a commit that referenced this pull request Jul 17, 2011
[EPG] Store genre string when genreType/genreSubType are not available
@opdenkamp opdenkamp merged commit 12465d6 into opdenkamp:master Jul 17, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants