I'm trying to persuade the backend to remove a recording via a perl script. If anyone has a working example I'd be very grateful.
I'm trying to use the /Dvr/RemoveRecorded api call but I'm not too sure of my perl so I'm trying something a little simpler with just the Firefox browser.
I noted that /Dvr/GetRecorded uses the same parameters (it's also a 'get' not a 'post' so should be really simple).
Code: Select all
http://192.168.1.67:6544/Dvr/GetRecordedList?StartIndex=3&Count=1
Now if I plug those details into GetRecorded with:<ProgramList version="1.0" serializerVersion="1.1">
<StartIndex>3</StartIndex>
<Count>1</Count>
<TotalAvailable>648</TotalAvailable>
<AsOf>2014-11-17T17:22:24Z</AsOf>
<Version>0.27.20141016-1</Version>
<ProtoVer>77</ProtoVer>
<Programs>
<Program>
<StartTime>2012-01-18T21:30:00Z</StartTime>
[ . . . ]
<ChanId>1002</ChanId>
Code: Select all
http://192.168.1.67:6544/Dvr/GetRecorded?StartTime=2012-01-18T21:30:00Z&ChanId=1002
All field are blank or zero; in particular:
Can anyone explain what I'm doing wrong?<Program version="1.11" serializerVersion="1.1">
<StartTime>2014-11-17T17:37:21Z</StartTime>
<EndTime>2014-11-17T17:37:21Z</EndTime>
<Title/><SubTitle/><Category/><CatType/>
<Repeat>false</Repeat>
<VideoProps>0</VideoProps>
<AudioProps>0</AudioProps>
<SubProps>0</SubProps>
<SeriesId/><ProgramId/>
[. . . . ]
<Channel>
<ChanId>0</ChanId>
Phil