Refactor IPTV synchronization logic and settings UI#264
Merged
Conversation
Owner
|
Please update the IPTV TV/D-pad action map for the new Manage Categories action. The row now has 6 actions, so iptvActionIndex should allow 0..5. Also pass onManageCategories into both the "iptv" and "TV" IptvSettings calls, same as the mobile path, so the category screen actually opens. |
|
Would there also be a toggle to hide groups and channels on this ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant improvements to how IPTV group management is handled, particularly by introducing composite keys for playlist/group operations and updating the UI to support per-playlist group management. The changes enhance both the internal data structure and the user experience for managing IPTV categories.
Key changes include:
IPTV Group Data Model & Repository Logic
PlaylistGroupKeyvalue class to efficiently represent composite keys ofplaylistId|groupName, reducing string allocations and improving clarity in group operations. (IptvModels.kt)IptvRepositoryto use the new composite key, updating functions liketoggleHiddenGroup,moveGroupUp,moveGroupDown, andmoveGroupToTopto require bothplaylistIdandgroupName. Added a newresetGroupOrdermethod for per-playlist resets. (IptvRepository.kt) [1] [2] [3] [4]IptvRepository.kt) [1] [2]UI/UX Improvements for IPTV Settings
SettingsScreen.ktfor managing IPTV categories per playlist. This includes a new navigation path ("IPTV_CATEGORIES") and a dedicatedIptvCategoriesSettingscomposable for group management. (SettingsScreen.kt) [1] [2] [3]CatalogActionChip, allowing users to directly access group management for a specific playlist. (SettingsScreen.kt) [1] [2] [3]Cloud Sync Adjustments
iptvHiddenGroupsandiptvGroupOrderfields from the cloud sync repository, as group management is now handled per playlist with composite keys. (CloudSyncRepository.kt) [1] [2] [3]These changes collectively improve the scalability and maintainability of IPTV group management, and provide a more intuitive user experience for managing groups on a per-playlist basis.