diff options
-rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_epg_types.h | 11 | ||||
-rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h | 11 |
2 files changed, 17 insertions, 5 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_epg_types.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_epg_types.h index a82843db47..96db9d73fa 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_epg_types.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_epg_types.h @@ -67,6 +67,11 @@ extern "C" { const unsigned int EPG_TAG_INVALID_UID = 0; /*! + * @brief special EPG_TAG.iSeriesNumber, EPG_TAG.iEpisodeNumber and EPG_TAG.iEpisodePartNumber value to indicate it is not to be used + */ + const int EPG_TAG_INVALID_SERIES_EPISODE = -1; + + /*! * @brief EPG event states. Used with EpgEventStateChange callback. */ typedef enum @@ -100,9 +105,9 @@ extern "C" { time_t firstAired; /*!< @brief (optional) first aired in UTC */ int iParentalRating; /*!< @brief (optional) parental rating */ int iStarRating; /*!< @brief (optional) star rating */ - int iSeriesNumber; /*!< @brief (optional) series number. Set to "0" for specials/pilot. For 'invalid' set to -1 */ - int iEpisodeNumber; /*!< @brief (optional) episode number. For 'invalid' set to -1 */ - int iEpisodePartNumber; /*!< @brief (optional) episode part number. For 'invalid' set to -1 */ + int iSeriesNumber; /*!< @brief (optional) series number. Set to "0" for specials/pilot. For 'invalid' set to EPG_TAG_INVALID_SERIES_EPISODE */ + int iEpisodeNumber; /*!< @brief (optional) episode number. For 'invalid' set to EPG_TAG_INVALID_SERIES_EPISODE */ + int iEpisodePartNumber; /*!< @brief (optional) episode part number. For 'invalid' set to EPG_TAG_INVALID_SERIES_EPISODE */ const char * strEpisodeName; /*!< @brief (optional) episode name */ unsigned int iFlags; /*!< @brief (optional) bit field of independent flags associated with the EPG entry */ const char * strSeriesLink; /*!< @brief (optional) series link for this event */ diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h index d62dba4c38..0b5dc47646 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h @@ -528,14 +528,21 @@ extern "C" { } ATTRIBUTE_PACKED PVR_TIMER; /*! + * @brief special PVR_RECORDING.iSeriesNumber and PVR_RECORDING.iEpisodeNumber value to indicate it is not to be used + * + * Used if recording has no valid season and/or episode info. + */ + const unsigned int PVR_RECORDING_INVALID_SERIES_EPISODE = EPG_TAG_INVALID_SERIES_EPISODE; + + /*! * @brief Representation of a recording. */ typedef struct PVR_RECORDING { char strRecordingId[PVR_ADDON_NAME_STRING_LENGTH]; /*!< @brief (required) unique id of the recording on the client. */ char strTitle[PVR_ADDON_NAME_STRING_LENGTH]; /*!< @brief (required) the title of this recording */ char strEpisodeName[PVR_ADDON_NAME_STRING_LENGTH]; /*!< @brief (optional) episode name (also known as subtitle) */ - int iSeriesNumber; /*!< @brief (optional) series number (usually called season). Set to "0" for specials/pilot. For 'invalid' set to -1 */ - int iEpisodeNumber; /*!< @brief (optional) episode number within the "iSeriesNumber" season. For 'invalid' set to -1 */ + int iSeriesNumber; /*!< @brief (optional) series number (usually called season). Set to "0" for specials/pilot. For 'invalid' set to PVR_RECORDING_INVALID_SERIES_EPISODE */ + int iEpisodeNumber; /*!< @brief (optional) episode number within the "iSeriesNumber" season. For 'invalid' set to PVR_RECORDING_INVALID_SERIES_EPISODE */ int iYear; /*!< @brief (optional) year of first release (use to identify a specific movie re-make) / first airing for TV shows. Set to '0' for invalid. */ char strDirectory[PVR_ADDON_URL_STRING_LENGTH]; /*!< @brief (optional) directory of this recording on the client */ char strPlotOutline[PVR_ADDON_DESC_STRING_LENGTH]; /*!< @brief (optional) plot outline */ |