[mythtv-users] Killing live tv session using script

Rajil Saraswat rajil.s at gmail.com
Sat Apr 13 20:44:59 UTC 2019


I am trying to use the MythTV API to kill the LiveTV session. Note, i 
can't query the FrontEnd since it is already off the network (power 
failure).

First step is to get the tuner status,

$curl 192.168.1.12:6544/Dvr/GetEncoderList | sed "s/></>\n</g"|grep 
RecordedId
   % Total    % Received % Xferd  Average Speed   Time    Time Time  Current
                                  Dload  Upload   Total   Spent Left  Speed
100  9096  100  9096    0     0  10701      0 --:--:-- --:--:-- --:--:-- 
10688
<RecordedId>0</RecordedId>
<RecordedId>6499</RecordedId>
<RecordedId>0</RecordedId>
<RecordedId>0</RecordedId>

One if the tuner is shown as currently recording and this is what I want 
to end. However, if i try to delete this recording (thereby freeing the 
tuner) I get an error,


$curl 192.168.1.12:6544/Dvr/DeleteRecording?RecordedId=6499
<?xml version="1.0" 
encoding="utf-8"?><detail><errorCode>401</errorCode><errorDescription>Invalid 
Action</errorDescription></detail><!DOCTYPE 
html><HTML><HEAD><TITLE>Error 404</TITLE><META HTTP-EQUIV="Conte
nt-Type" CONTENT="text/html; charset=ISO-8859-1"></HEAD><BODY><H1>404 
Not Found.</H1></BODY></HTML>

How can i delete the current LiveTV session?

Thanks


On 4/12/19 2:14 PM, Rajil Saraswat wrote:
> Hello,
> Is it possible to kill/quit live tv session using cli interface?
>
> I have a separate frontend and backend. The frontend sometimes locks 
> up (due to power failure) but the backend continues to engage the 
> tuner. I would like to free up the tuner using a script for such 
> situations.
>
> Thanks


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20190413/2963d53d/attachment.html>


More information about the mythtv-users mailing list