MythTV keeps recording even though schedules are deleted?

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
MorkZaDork
Newcomer
Posts: 4
Joined: Sat Aug 01, 2020 6:41 pm
United States of America

MythTV keeps recording even though schedules are deleted?

Post by MorkZaDork » Sat Mar 27, 2021 12:27 pm

Having a hard time googling this, but I have a problem where MythTV keeps recording a program or movie or whatever even though I've deleted it from the recording schedules. I have a hunch there's some remnants in some table somewhere that's triggering it keep recording even though those programs no longer show up in the UI. I looked in the record table and I'm not seeing it there. Any other pointers on where to look?

User avatar
pgbennett
Developer
Posts: 404
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: MythTV keeps recording even though schedules are deleted?

Post by pgbennett » Sat Mar 27, 2021 1:27 pm

Do you delete using mythfrontend? When you say it keeps recording are you referring to a recording in progress at the time or future scheduled recordings?

When you delete or change a recording rule it runs a "reschedule". If you are deleting by some unusual method perhaps that is not happening. Try running mythutil --resched after deleting the rule. Also, deleting a rule will not stop recordings already in progress.

MorkZaDork
Newcomer
Posts: 4
Joined: Sat Aug 01, 2020 6:41 pm
United States of America

Re: MythTV keeps recording even though schedules are deleted?

Post by MorkZaDork » Sat Mar 27, 2021 5:31 pm

I'll try that and see if it helps but I probably won't know for several days if any of my "problem" programs are continuing to record.

My setup is very unusual. I don't use the mythtv frontend, but I do use the mythweb to schedule or delete programs... but not always. I also have a lot of custom built scripts that do automation for me and sometimes they go in and delete it from the database rather than me doing it via mythweb. Maybe that's the problem, hope this fixes it.

User avatar
bill6502
Developer
Posts: 1871
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythTV keeps recording even though schedules are deleted?

Post by bill6502 » Sat Mar 27, 2021 6:41 pm

In your custom scripts, don't delete directly from the DB. Use the Services API. For example:

Code: Select all

curl --data RecordedId=<n> --header Allow:Application/JSON localhost:6544/Dvr/DeleteRecording
curl --data RecordId=<n> --header Allow:Application/JSON localhost:6544/Dvr/RemoveRecordSchedule
You can replace RecordedId with ChanId and StartTime if you prefer.

The API takes care of all the DB tables in play.

API endpoints that add/change/delete data must be POSTs, not GETs.

There are Wiki pages available and Python bindings if of use: https://www.mythtv.org/wiki/Services_AP ... I_Examples

Post Reply