MythTV/mythtv

Errors when creating a recording rule with certain settings

bennettpeter opened this issue · 3 comments

Using the web app:

From the program guide, create a schedule "Record All", on an entry. Set filters that exclude the current entry from being recorded (e.g. set New Episode when it is not a new episode). Save the entry.

It does not show the current episode with any schedule status. This is correct since the current episode is excluded by the filter.

Click the episode again and set "Record All" again with the same or different filter. Save the record.

The web app confirms successful, bu there is a database error "Duplicate entry '10039-14:00:00-2024-05-06-Supernatural-4' for key 'record.chanid'" and t he record is not saved.

Probably it would be best if clicking the show would edit the same record rule instead of trying to create a new one. Also the database error should cause an error to be reported to the user.

Same problem exists with mythfrontend.

Fixed for the web app. It will display a message when the save of the record rule fails.

The front end fix is complex, since the save operation takes place asynchronously. Also the key structure on the database is suspect. This error only occurs if you click on the exact same showing and try to set it again. However you can create duplicate record entries as many as you like by clicking on different showings of the series. This does not make sense,

Closing this, as it only happens when multiple rules are set up for a program, and it will display an error message. It looks like it has been around for a long time.