[mythtv-commits] Ticket #13500: Deleting channels can orphan references in recorded and oldrecorded

MythTV noreply at mythtv.org
Wed Nov 6 15:42:06 UTC 2019


#13500: Deleting channels can orphan references in recorded and oldrecorded
------------------------------+---------------------------
 Reporter:  gigem             |          Owner:  gigem
     Type:  Developer Task    |         Status:  assigned
 Priority:  minor             |      Milestone:  31.0
Component:  MythTV - General  |        Version:  v30-fixes
 Severity:  medium            |     Resolution:
 Keywords:                    |  Ticket locked:  0
------------------------------+---------------------------

Comment (by Klaas de Waal):

 I would appreciate a more extensive description of what the problem is
 that is being solved. As I understand it, the goal is to show the channel
 name of old recordings when the channel does not exist anymore. I do have
 a number of recordings like that and they then show up with either the
 wrong channel name or just a number, but they play correct.

 About the patch, I have done some testing with mythtv-setup and it looks
 OK, it does not break anything for me.

 There is something strange about the chanid values. On a very first scan
 (with a really empty list of channels) then channel 1 gets chanid 10001
 which is videosource ID x 10000 plus the channel number, etc.
 After deleting all channels and scanning again, one channel gets chanid
 10000 and the other channels get numbers in the 150000 region. This is
 peculiar.

 It would be great that when I delete all channels and then scan again,
 that the channels just deleted and found again would be come "undeleted".
 So the state "deleted" would then only be used for channels that are
 really gone.
 The advantage would be that the data that has been entered by the user in
 the channel, such as the visible state, the xmltv id and the icon path,
 would be preserved.
 I think that a lot of users would be very happy with that.

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13500#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list