Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete IPTV channel data when the channel is removed #986

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

kmdewaal
Copy link
Contributor

@kmdewaal kmdewaal commented Dec 4, 2024

Delete all IPTV channel data extensions records from the database when the channel it refers to does not exist anymore.
As part of the periodic housekeeping tasks all channels that have been marked for deletion and for which there are no more recordings preseent are removed from the database. For IPTV channels the IPTV URL is stored in table iptv_channel. This table can be seen as an extension of table channel and it is usually accessed with the chanid from the channel table. This means that when a channel is really deleted (removed from the database) also the corresponding record in iptv_channel has to be deleted.

Refs #936

Delete all IPTV channel data extensions records from
the database when the channel it refers to does not
exist anymore.
As part of the periodic housekeeping tasks all channels
that have been marked for deletion and for which there are
no more recordings preseent are removed from the database.
For IPTV channels the IPTV URL is stored in table iptv_channel.
This table can be seen as an extension of table channel and
it is usually accessed with the chanid from the channel table.
This means that when a channel is really deleted (removed from
the database) also the corresponding record in iptv_channel
has to be deleted.

+    // Delete all IPTV channel data extension records from the database
+    // when the channel it refers to does not exist anymore.
@kmdewaal kmdewaal requested a review from gigem December 5, 2024 22:09
@kmdewaal kmdewaal merged commit 5eddc0d into MythTV:master Dec 7, 2024
8 of 10 checks passed
@kmdewaal kmdewaal deleted the iptvchannel_cleanup branch December 7, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant