Skip to content

Commit

Permalink
DeleteAllInputs must not delete iptv_channel (#987)
Browse files Browse the repository at this point in the history
The CardUtil function DeleteAllInputs does delete the
content of all four tables related to inputs but it does
also delete the content of table iptv_channel.
This is not correct; table iptv_channel contains the URLs
of the channels that are IPTV channels.
This bug has been introduced as part of commit d4c0f13.
The entries in table iptv_channel can only be removed
when the corresponding channel has been deleted.
This is done as part of a periodic housekeeping task.

Refs #936
  • Loading branch information
kmdewaal authored Dec 7, 2024
1 parent 5eddc0d commit c91be53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mythtv/libs/libmythtv/cardutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2894,8 +2894,7 @@ bool CardUtil::DeleteAllInputs(void)
return (query.exec("TRUNCATE TABLE inputgroup") &&
query.exec("TRUNCATE TABLE diseqc_config") &&
query.exec("TRUNCATE TABLE diseqc_tree") &&
query.exec("TRUNCATE TABLE capturecard") &&
query.exec("TRUNCATE TABLE iptv_channel"));
query.exec("TRUNCATE TABLE capturecard"));
}

std::vector<uint> CardUtil::GetInputList(void)
Expand Down

0 comments on commit c91be53

Please sign in to comment.