Feature #1087: DVR Improvements
DVR may link to wrong broadcast
|Assignee:||Adam Sutton||% Done:|
The DVR code keeps a reference to broadcasts in its entry structure, as well as duplicating most of the data internally.
The reasons for this are fairly simple:
Keep the duplicate info in case the broadcast disappears (this is critical info like title etc..), this would happen if the program were to be deleted from the database (db reset).
Keep the reference so that when changes are applied they get automatically passed to the DVR entry.
However this does throw up a possible issue. If the DB is reset but a new broadcast with the same ID as the old one is inserted its possible the DVR system will get confused and start doing weird things.
So I need to look at exactly how this will work. Generally speaking I think its pointless to hold onto a broadcast record for anything in the past (i.e. that's completed). And that searching for something in the future should use the internal cache of info, rather than the ID.