MythTV / mythtv

The official MythTV repository
https://www.mythtv.org
GNU General Public License v2.0
708 stars 346 forks source link

cancel = cancel all when reviewing added channels? #552

Closed RossBoylan closed 2 years ago

RossBoylan commented 2 years ago

Basically from Marillat's repo, but I backported some code so I could use the Python3 interface.

What steps will reproduce the bug?

This is from memory.

How often does it reproduce? Is there a required condition?

I think it has happened the few times I have tried it. As noted, there are quite a few required conditions to produce the problem.

What is the expected behaviour?

First, it would be nice if I simply got a grid with checkboxes for all the added channels, so that I could quickly indicate which ones to keep. There were 80, and I only wanted a handful. So processing them one at a time would have been painful.

Second, I would expect the buttons to have names that correspond to the immediate task, which is to either add the channel or not. I assumed "cancel" meant "do not add" because it was the closest thing available. "delete" would have been meaningful to me, though perhaps it wasn't chosen because you can't delete what isn't already on the channel list.

Third, narrowly the problem is that "cancel" cancelled all additions, not just the current channel that was being displayed.

Additional information

I found the whole process of managing channels through the GUI baffling and tedious, even after consulting the documentation. Focusing just on the channel scan, it wasn't clear to me what the different categories of results were (though in retrospect I guess it was channels added, deleted, and changed between the previous scan and this one), or what the implications of different choices were.

I had originally scanned the channels, accepting all, and then manually deleted the ones I didn't want through a later step in the channel editor.

Since "cancel" wasn't working to make selective additions, I simply accepted everything. This time I reviewed the code in mythtv-setup to see what deleting a channel did, leading to routines in the myth library that simply deleted entries from the channel table. Then I wrote some sql to do the mass deletion I wanted.

kmdewaal commented 2 years ago

Channel scanning has been improved a lot since version 30, I suggest to upgrade to fixes/32. The behavior when adding channels in fixes/32 is now as you would expect, with "cancel" cancelling only adding that channel and "cancel all" cancelling adding all remaining channels.

There is documentation in the Wiki in https://www.mythtv.org/wiki/Channel_Scanning although this does not describe this particular dialog.

About having a nice GUI.. There is work-in-progress in making a web-based GUI to handle all of this but there is still a lot to be done and volunteers to help are very welcome!

As the current behavior of fixes/32 and master is correct and fixes/30 will not be updated this ticket is now closed. Please re-open this ticket or create a new ticket if you find inconsistencies, irregularities, unexpected behavior or even plain errors in the channel scanner of fixes/32.

RossBoylan commented 2 years ago

Thanks for the info. Glad it's fixed.