Difference between revisions of "Talk:Commercial detection with silences"

From MythTV Official Wiki
Jump to: navigation, search
(It's stopped working recently)
(A suggestion to improve the visibility of the running job in the Mythweb status page.: new section)
Line 7: Line 7:
  
 
Fixed in silence.cpp v4.2 - I don't know what has changed but the process has SIGALRM blocked when it starts so this change simply unblocks it and all is good in the world again.
 
Fixed in silence.cpp v4.2 - I don't know what has changed but the process has SIGALRM blocked when it starts so this change simply unblocks it and all is good in the world again.
 +
 +
== A suggestion to improve the visibility of the running job in the Mythweb status page. ==
 +
 +
I would like to propose a small change to your code to include the following lines at line 178 of the silence.py script.
 +
 +
    #Add this line to show the status in green in the Mythweb status page
 +
    job.update({'status': 4, 'comment': 'Running.'})
 +
 +
With this line added the status of the job shown in Mythweb status page shows running in green whilst the job is running, this is only a small cosmetic change but it helps to identify a running job in a long list of finished and queued jobs.

Revision as of 14:47, 7 May 2014

Anyone know the correct way to edit a skiplist in Python?

Done. wagnerrp

It's stopped working recently

I can't figure out why but silence.cpp seems to be ignoring SIGALRM and so it never stops. If I kill the tail manually (like silence.ccp is supposed to in the alarm handler) it finishes properly. If I send a SIGALRM to silence.cpp nothing happens. I'm on Debian Wheezy and it was working until a few weeks ago so it is probably a kernel or security update. Has anyone else seen this behaviour?

Fixed in silence.cpp v4.2 - I don't know what has changed but the process has SIGALRM blocked when it starts so this change simply unblocks it and all is good in the world again.

A suggestion to improve the visibility of the running job in the Mythweb status page.

I would like to propose a small change to your code to include the following lines at line 178 of the silence.py script.

   #Add this line to show the status in green in the Mythweb status page
   job.update({'status': 4, 'comment': 'Running.'})

With this line added the status of the job shown in Mythweb status page shows running in green whilst the job is running, this is only a small cosmetic change but it helps to identify a running job in a long list of finished and queued jobs.