|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IProgramInfo
An interface to get infos about a MythTV recording.
This object represents a finished, running, pending or scheduled MythTV recording. Depending on the type of a recording
and on the MythTV version, different recording properties may be returned.
This interface is property-aware
. See the properties-list
for all properties of this object.
See the response examples on how a returned recording looks like.
See the usage examples on how to fetch the different types of recording lists.
<00>TITLE: Fringe - Grenzfälle des FBI | <01>SUBTITLE: Kontrolle | <02>DESCRIPTION: Der Sohn eines hochrangigen Massive Dynamic-Mitarbeiters wird entführt... | <03>CATEGORY: | <04>CHANNEL_ID: 11123 | <05>CHANNEL_NUMBER: 10123 | <06>CHANNEL_SIGN: PULS 4 | <07>CHANNEL_NAME: PULS 4 | <08>PATH_NAME: /var/lib/mythtv/recordings/11123_20110401233600.mpg | <09>FILESIZE_HIGH: 0 | <10>FILESIZE_LOW: 0 | <11>START_DATE_TIME: Fri Apr 01 23:04:58 CEST 2011 | <12>END_DATE_TIME: Fri Apr 01 23:58:24 CEST 2011 | <13>DUPLICATE: false | <14>SHAREABLE: false | <15>FIND_ID: 0 | <16>HOSTNAME: brain | <17>SOURCE_ID: 1 | <18>CARD_ID: 1 | <19>INPUT_ID: 1 | <20>REC_PRIORITY: 1 | <21>REC_STATUS: -2=> {RECORDING} | <22>REC_ID: 330 | <23>REC_TYPE: 1=> {SINGLE_RECORD} | <24>DUP_IN: 15=> {DUPS_IN_RECORDED,DUPS_IN_OLD_RECORDED,DUPS_IN_ALL} | <25>DUP_METHOD: 6=> {DUP_CHECK_SUB,DUP_CHECK_DESC,DUP_CHECK_SUB_DESC} | <26>REC_START_TIME: Fri Apr 01 23:36:00 CEST 2011 | <27>REC_END_TIME: Fri Apr 01 23:58:24 CEST 2011 | <28>REPEAT: false | <29>PROGRAM_FLAGS: 0=> {} | <30>REC_GROUP: Default | <31>CHAN_COMM_FREE: false | <32>CHANNEL_OUTPUT_FILTERS: | <33>SERIES_ID: | <34>PROGRAM_ID: | <35>LAST_MODIFIED: Fri Apr 01 23:35:39 CEST 2011 | <36>STARS: 0.000000 | <37>ORIGINAL_AIRDATE: | <38>HAS_AIRDATE: false | <39>PLAY_GROUP: Default | <40>REC_PRIORITY2: 0 | <41>PARENT_ID: 0 | <42>STORAGE_GROUP: Default | <43>AUDIO_PROPERTIES: 1=> {AUD_STEREO} | <44>VIDEO_PROPERTIES: 0=> {} | <45>SUBTITLE_TYPE: 0=> {} | <46>YEAR: 0
<00>TITLE: Malcolm mittendrin | <01>SUBTITLE: | <02>DESCRIPTION: Malcolm verteidigt Reese Serie mit Bryan Cranston, Christopher Masterson Programminformation nur noch bis Ende Dezember 2010 | <03>CATEGORY: Serie | <04>CHANNEL_ID: 1000 | <05>CHANNEL_NUMBER: 1 | <06>CHANNEL_SIGN: PRO7 | <07>CHANNEL_NAME: Pro7 | <08>PATH_NAME: | <09>FILESIZE_HIGH: 0 | <10>FILESIZE_LOW: 0 | <11>START_DATE_TIME: Thu Apr 14 10:15:00 CEST 2011 | <12>END_DATE_TIME: Thu Apr 14 10:45:00 CEST 2011 | <13>DUPLICATE: | <14>SHAREABLE: false | <15>FIND_ID: 0 | <16>HOSTNAME: | <17>SOURCE_ID: 1 | <18>CARD_ID: 1 | <19>INPUT_ID: 1 | <20>REC_PRIORITY: 0 | <21>REC_STATUS: -2=> {RECORDING} | <22>REC_ID: 1 | <23>REC_TYPE: 1=> {SINGLE_RECORD} | <24>DUP_IN: 15=> {DUPS_IN_RECORDED,DUPS_IN_OLD_RECORDED,DUPS_IN_BOTH,DUPS_IN_ALL,DUPS_NEW_EPI} | <25>DUP_METHOD: 6=> {DUP_CHECK_SUB,DUP_CHECK_DESC,DUP_CHECK_SUB_DESC} | <26>REC_START_TIME: Thu Apr 14 10:39:00 CEST 2011 | <27>REC_END_TIME: Thu Apr 14 10:45:00 CEST 2011 | <28>REPEAT: false | <29>PROGRAM_FLAGS: 0=> {} | <30>REC_GROUP: Default | <31>CHAN_COMM_FREE: false | <32>CHANNEL_OUTPUT_FILTERS: | <33>SERIES_ID: 227250734 | <34>PROGRAM_ID: | <35>LAST_MODIFIED: Thu Apr 14 10:39:19 CEST 2011 | <36>STARS: 0.0 | <37>ORIGINAL_AIRDATE: Thu Apr 14 02:00:00 CEST 2011 | <38>HAS_AIRDATE: false
link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)link
)
Nested Class Summary | |
---|---|
static class |
IProgramInfo.Props
The properties of an IProgramInfo response. |
Method Summary | |
---|---|
IProgramAudioProperties |
getAudioProperties()
Gets the recording audio properties. |
String |
getBaseName()
Gets the recording file base name. |
Integer |
getCardID()
Gets the id of the recorder, that will record this program. |
String |
getCategory()
Gets the category of this program. |
Integer |
getChannelID()
Gets the channel id of this program. |
String |
getChannelName()
Gets the channel name. |
String |
getChannelNumber()
Gets the channel number of this program. |
String |
getChannelOuputFilters()
Output filters. |
String |
getChannelSign()
Gets the channel station abbreviation of this program. |
String |
getDescription()
Gets the description of this program. |
Date |
getEndDateTime()
Gets the end-date and -time of this program. |
Integer |
getEpisode()
Gets the episode number of the program. |
Long |
getFileSize()
Gets the size of the recording file. |
Integer |
getFindID()
Gets the find-id of the recording. |
String |
getHostName()
Gets the name of the host storing the recording file. |
String |
getInetRef()
Gets an identification string to use for metadata grabbers. |
Integer |
getInputID()
Gets the id of the recorder input, that will be used for recording. |
Date |
getLastModified()
Last modification time. |
Date |
getOriginalAirdate()
Gets the original airdate of the recording. |
Integer |
getParentID()
Parent ID. |
Integer |
getPartNumber()
Part number. |
Integer |
getPartTotal()
Part total. |
String |
getPathName()
Gets the recording file name or URI. |
String |
getPlayGroup()
Gets the play group assigned to the recording. |
String |
getPreviewImageName()
Gets the name of the default recordings preview image. |
IProgramFlags |
getProgramFlags()
Gets additional status flags of the recording. |
String |
getProgramID()
Gets the program id of this program. |
List<String> |
getPropertyValues()
Returns all property values as strings. |
IProgramRecordingDupMethodType |
getRecordingDuplicationMethod()
Gets the duplication mode to use for the recording. |
IProgramRecordingDupInType |
getRecordingDuplicationType()
Gets the duplication type of the recording. |
int |
getRecordingDuration()
Gets the recording duration for the program in minutes. |
int |
getRecordingElapsedMinutes()
Gets the amount of minutes elapsed since recording of this program has started. |
int |
getRecordingElapsedPercent()
Gets the amount of minutes elapsed in percent, since recording of this program has started. |
int |
getRecordingEndOffset()
Gets the recording end offset. |
Date |
getRecordingEndTime()
Gets the recording end time. |
String |
getRecordingGroup()
Gets the recording group. |
Integer |
getRecordingId()
Gets the id of the recording in the database. |
Integer |
getRecordingPriority()
Gets the recording priority. |
Integer |
getRecordingPriority2()
Gets the recording priority 2. |
int |
getRecordingStartOffset()
Gets the recording start offset. |
Date |
getRecordingStartTime()
Gets the recording start time. |
IProgramRecordingStatus |
getRecordingStatus()
Gets the current recording status. |
IProgramRecordingType |
getRecordingType()
Gets the recording type. |
Integer |
getSeason()
Gets the season of the program. |
String |
getSeriesID()
Gets the series id of this program. |
Integer |
getSourceID()
Gets the source id of this program. |
Float |
getStars()
Rating. |
Date |
getStartDateTime()
Gets the start-date and -time of this program. |
String |
getStorageGroup()
Gets the name of the storage group storing the recording. |
String |
getSubtitle()
Gets the subtitle of this program. |
IProgramSubtitleType |
getSubtitleType()
Gets the recording subtitle properties. |
String |
getSyndicatedEpisode()
Gets the syndicated episode of the program. |
Float |
getTimeStretch()
Deprecated. 23, replaced by getPlayGroup() |
String |
getTitle()
Gets the title of this program. |
String |
getUniqueRecordingId()
The unique recording id if this recording. |
IProgramVideoProperties |
getVideoProperties()
Gets the recording video properties. |
Integer |
getYear()
Gets the production year of the program. |
Boolean |
hasAirDate()
Deprecated. 57 |
Boolean |
isChannelCommFree()
Deprecated. 57 , use IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead. |
Boolean |
isDuplicate()
Deprecated. 57 , use IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead. |
Boolean |
isRepeat()
Deprecated. 57 , use IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags) instead. |
Boolean |
isShareable()
Deprecated. 57 |
void |
setFileSize(Long fileSize)
Updates the size of the recording. |
Methods inherited from interface org.jmythapi.protocol.response.IBasicProgramInfo |
---|
getDuration, getFullTitle, getMinutesAfterMidnight, getUniqueProgramId, isValid |
Methods inherited from interface org.jmythapi.IVersionable |
---|
getVersionNr |
Methods inherited from interface org.jmythapi.IPropertyAware |
---|
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, setPropertyValue, setPropertyValue, setPropertyValueObject |
Method Detail |
---|
List<String> getPropertyValues()
IPropertyAware
getPropertyValues
in interface IPropertyAware<IProgramInfo.Props>
String getUniqueRecordingId()
This id has the format: [channel-id]_[recording-start-time]
Note: This id is different to IBasicProgramInfo.getUniqueProgramId()
String getTitle()
getTitle
in interface IBasicProgramInfo
IProgramInfo.Props.TITLE
,
IBasicProgramInfo.getTitle()
String getSubtitle()
getSubtitle
in interface IBasicProgramInfo
IProgramInfo.Props.SUBTITLE
,
IBasicProgramInfo.getSubtitle()
String getDescription()
getDescription
in interface IBasicProgramInfo
IProgramInfo.Props.DESCRIPTION
,
IBasicProgramInfo.getDescription()
String getCategory()
getCategory
in interface IBasicProgramInfo
Comedy
IProgramInfo.Props.CATEGORY
,
IBasicProgramInfo.getCategory()
Date getStartDateTime()
Note: This value may be different to getRecordingStartTime()
.
getStartDateTime
in interface IBasicProgramInfo
IProgramInfo.Props.START_DATE_TIME
,
IBasicProgramInfo.getStartDateTime()
Date getEndDateTime()
Note: This value may be different to getRecordingEndTime()
.
getEndDateTime
in interface IBasicProgramInfo
IProgramInfo.Props.END_DATE_TIME
,
IBasicProgramInfo.getEndDateTime()
String getSeriesID()
This is used by MythTV for duplication checks.
getSeriesID
in interface IBasicProgramInfo
IProgramInfo.Props.SERIES_ID
,
IBasicProgramInfo.getSeriesID()
String getProgramID()
This is used by MythTV for duplication checks.
getProgramID
in interface IBasicProgramInfo
IProgramInfo.Props.PROGRAM_ID
,
IBasicProgramInfo.getProgramID()
Integer getChannelID()
getChannelID
in interface IBasicChannelInfo
11123
IProgramInfo.Props.CHANNEL_ID
,
IBasicChannelInfo.getChannelID()
String getChannelSign()
getChannelSign
in interface IBasicChannelInfo
PULS 4
IProgramInfo.Props.CHANNEL_SIGN
,
IBasicChannelInfo.getChannelSign()
String getChannelNumber()
getChannelNumber
in interface IBasicChannelInfo
IProgramInfo.Props.CHANNEL_NUMBER
,
IBasicChannelInfo.getChannelNumber()
Integer getCardID()
getCardID
in interface IBasicInputInfo
IProgramInfo.Props.CARD_ID
,
IBasicInputInfo.getCardID()
Integer getInputID()
getInputID
in interface IBasicInputInfo
IProgramInfo.Props.INPUT_ID
,
IBasicInputInfo.getInputID()
Integer getSourceID()
getSourceID
in interface IBasicInputInfo
IProgramInfo.Props.SOURCE_ID
,
IBasicInputInfo.getSourceID()
Boolean isDuplicate()
57
, use IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags)
instead.
IProgramInfo.Props.DUPLICATE
,
IProgramFlags.Flags.FL_DUPLICATE
Boolean isShareable()
57
Signals that the used card input can be shared, e.g. on DVB cards. Till protocol version 57 this information was used by the scheduler.
IProgramInfo.Props.SHAREABLE
Boolean isRepeat()
57
, use IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags)
instead.
IProgramInfo.Props.REPEAT
,
IProgramFlags.Flags.FL_REPEAT
Boolean isChannelCommFree()
57
, use IProgramFlags#isSet(org.jmythapi.protocol.response.IProgramFlags.Flags)
instead.
IProgramInfo.Props.CHAN_COMM_FREE
,
IProgramFlags.Flags.FL_CHANCOMMFREE
Boolean hasAirDate()
57
IProgramInfo.Props.HAS_AIRDATE
Integer getFindID()
(UNIX_TIMESTAMP(program.starttime)/60/60/24)+719528
0
IProgramInfo.Props.FIND_ID
Integer getParentID()
If this recording is a duplicate, the ID of the parent is specified here.
This is used in combination with IProgramRecordingType.Type.OVERRIDE_RECORD
.
IProgramInfo.Props.PARENT_ID
Integer getSeason()
IProgramInfo.Props.SEASON
Integer getEpisode()
IProgramInfo.Props.EPISODE
String getSyndicatedEpisode()
IProgramInfo.Props.SYNDICATED_EPISODE
String getInetRef()
IProgramInfo.Props.INETREF
String getChannelName()
IProgramInfo.Props.CHANNEL_NAME
String getChannelOuputFilters()
Allows to specify a set of filters to be used when playing back recordings from a given channel. This is useful for those with hardware encoders and more than one source, since filters are rarely a one-size-fits-all thing.
IProgramInfo.Props.CHANNEL_OUTPUT_FILTERS
String getPathName()
IProgramInfo.Props.PATH_NAME
String getPreviewImageName()
You can use the value returned by this function download the preview-image of the recording.
1000_20110701123000.mpg.png
String getBaseName()
1000_20110701123000.mpg
IProgramInfo.Props.PATH_NAME
String getHostName()
IProgramInfo.Props.HOSTNAME
Long getFileSize()
Hint: To print a human readable string you can use EncodingUtils.getFormattedFileSize(long)
.
IProgramInfo.Props.FILESIZE
,
IProgramInfo.Props.FILESIZE_LOW
,
IProgramInfo.Props.FILESIZE_HIGH
,
EncodingUtils.getFormattedFileSize(long)
void setFileSize(Long fileSize)
fileSize
- the new file sizeIProgramInfo.Props.FILESIZE
,
IProgramInfo.Props.FILESIZE_LOW
,
IProgramInfo.Props.FILESIZE_HIGH
,
EncodingUtils.getFormattedFileSize(long)
Date getOriginalAirdate()
IProgramInfo.Props.ORIGINAL_AIRDATE
Date getRecordingStartTime()
Note: This may be different to getStartDateTime()
.
IProgramInfo.Props.REC_START_TIME
Date getRecordingEndTime()
Note: This may be different to getEndDateTime()
.
IProgramInfo.Props.REC_END_TIME
int getRecordingStartOffset()
This value is the difference in minutes between getRecordingStartTime()
and getStartDateTime()
.
EncodingUtils.getMinutesDiff(Date, Date)
int getRecordingEndOffset()
This value is the difference in minutes between getRecordingEndTime()
and getEndDateTime()
.
EncodingUtils.getMinutesDiff(Date, Date)
int getRecordingDuration()
Note: This value may be different to IBasicProgramInfo.getDuration()
.
-1
if unknown.int getRecordingElapsedMinutes()
If current time is before recording-start-time, then 0
is returned.
If current time is after recording-end-time, then getRecordingDuration()
is returned.
If current time is between recording-start- -and -end-time, EncodingUtils.getMinutesDiff(recStartDate,now)
is used to calculate the amount of minutes elapsed.
EncodingUtils.getMinutesDiff(Date, Date)
int getRecordingElapsedPercent()
Integer getRecordingPriority()
-20
and 20
IProgramInfo.Props.REC_PRIORITY
Integer getRecordingPriority2()
IProgramInfo.Props.REC_PRIORITY2
String getRecordingGroup()
Default
, LiveTV
or Deleted
IProgramInfo.Props.REC_GROUP
String getPlayGroup()
Default
IProgramInfo.Props.PLAY_GROUP
String getStorageGroup()
Default
IProgramInfo.Props.STORAGE_GROUP
IProgramFlags getProgramFlags()
See IProgramFlags.Flags
for all possible values.
IProgramInfo.Props.PROGRAM_FLAGS
IProgramAudioProperties getAudioProperties()
See IProgramAudioProperties.Flags
for all possible values.
IProgramInfo.Props.AUDIO_PROPERTIES
IProgramVideoProperties getVideoProperties()
See IProgramVideoProperties.Flags
for all possible values.
IProgramInfo.Props.VIDEO_PROPERTIES
IProgramSubtitleType getSubtitleType()
See IProgramSubtitleType.Flags
for all possible values.
IProgramInfo.Props.SUBTITLE_TYPE
Integer getRecordingId()
Note: This is the ID of the mythtv scheduling rule,
stored in the database. Therefore multiple recordings may have the same
recording id!
If you need an unique id for a recording, use getUniqueRecordingId()
instead.
IProgramInfo.Props.REC_ID
IProgramRecordingStatus getRecordingStatus()
The recording status is typically unknown
for a recording schedule
.
See IProgramRecordingStatus.Status
for all possible status values.
IProgramInfo.Props.REC_STATUS
IProgramRecordingType getRecordingType()
See IProgramRecordingType.Type
for all possible types.
IProgramInfo.Props.REC_TYPE
IProgramRecordingDupInType getRecordingDuplicationType()
See IProgramRecordingDupInType.Flags
for all possible flags.
IProgramRecordingDupMethodType getRecordingDuplicationMethod()
See IProgramRecordingDupMethodType.Flags
for all possible flags.
Integer getYear()
IProgramInfo.Props.YEAR
Integer getPartNumber()
IProgramInfo.Props.PART_NUMBER
Integer getPartTotal()
IProgramInfo.Props.PART_TOTAL
Float getStars()
IProgramInfo.Props.STARS
Float getTimeStretch()
getPlayGroup()
IProgramInfo.Props.TIMESTRETCH
Date getLastModified()
Keeps track of the last time the entry was updated.
IProgramInfo.Props.LAST_MODIFIED
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |