Closed lart2150 closed 3 years ago
we get the clipMetadataId from recordingSearch so we don't need to call clipMetadataSearch. clipMetadataAdjust seems to only work via the middlemind websocket as I get PartnerId 3787 does not have access to operation clipMetadataAdjust.
when I call it on the tivo.
The recording has an offset and the segments are in ms. When you stream the show via online.tivo.com the offset is pulled from TextTrackCueList.
It looks like the offset can be accessed by starting a stream from the start of the show and then calling whatsOnSearch.
{"type":"whatsOnList","whatsOn":[{"...":"...","streamPositionMs":"3605471","..":"..."}]}
Completed in 0.2.0
{"contentId":"tivo:ct.446014569","type":"clipMetadataSearch"}
this will return the clip metada id{"clipMetadata":[{"authorId":"kinetiq_program_segments_1.2","channelAffiliate":"cbs affiliate","channelNumber":"1209","channelSourceType":"cable","channelStationId":"tivo:st.69021345","clipMetadataId":"tivo:cm.259788","contentEpisodeNumber":162,"contentId":"tivo:ct.446014569","contentSeasonNumber":6,"contentSubtitle":"Amanda Peet; Roger Bennett","contentTitle":"the late show with stephen colbert","createDate":"2021-08-18 05:00:09","description":"version 1.0","isRevoked":false,"offerStartTime":"2021-08-18 03:35:00","segmentType":"adSkip","type":"clipMetadata"}],"isBottom":true,"isTop":true,"type":"clipMetadataList"}
{"clipMetadataId":"tivo:cm.259788","recordingId":"tivo:rc.16049909","type":"clipMetadataAdjust"}
this returns the metadata{"authorId": "kinetiq_program_segments_1.2", "channelAffiliate": "CBS Affiliate", "channelNumber": "1209", "channelSourceType": "cable", "channelStationId": "tivo:st.69021345", "clipMetadataId": "tivo:cm.259788", "contentEpisodeNumber": 162, "contentId": "tivo:ct.446014569", "contentSeasonNumber": 6, "contentSubtitle": "Amanda Peet; Roger Bennett", "contentTitle": "The Late Show With Stephen Colbert", "createDate": "1970-01-01", "description": "version 1.0", "offerStartTime": "2021-08-18 03:35:00", "segment": [{"endOffset": "18708000", "keyword": ["AUTO_SKIP_MODE"], "startOffset": "18305616", "type": "clipSegment"}, {"endOffset": "19010888", "startOffset": "18717780", "type": "clipSegment"}, {"endOffset": "19885206", "startOffset": "19251956", "type": "clipSegment"}, {"endOffset": "20670308", "startOffset": "20126932", "type": "clipSegment"}, {"endOffset": "21308548", "startOffset": "20941874", "type": "clipSegment"}, {"endOffset": "21889076", "startOffset": "21724020", "type": "clipSegment"}, {"endOffset": "0", "keyword": ["FAKE_SEGMENT"], "startOffset": "0", "type": "clipSegment"}], "segmentType": "adSkip", "type": "clipMetadata"}