Skip to content

Commit

Permalink
Prevent empty channel groups
Browse files Browse the repository at this point in the history
  • Loading branch information
flubshi committed May 7, 2024
1 parent a584e01 commit 628411a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/WaipuData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,9 +855,12 @@ bool WaipuData::LoadChannelData()
m_channels.emplace_back(waipuChannel);
}

m_channelGroups.emplace_back(cgroup_fav);
m_channelGroups.emplace_back(cgroup_live);
m_channelGroups.emplace_back(cgroup_vod);
if (!cgroup_fav.channels.empty())
m_channelGroups.emplace_back(cgroup_fav);
if (!cgroup_live.channels.empty())
m_channelGroups.emplace_back(cgroup_live);
if (!cgroup_vod.channels.empty())
m_channelGroups.emplace_back(cgroup_vod);

return true;
}
Expand Down

0 comments on commit 628411a

Please sign in to comment.