Skip to content

Commit

Permalink
🎨 精简频道
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxieyoulei committed Mar 30, 2024
1 parent d675d53 commit 757d8c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/common/utils/iptv.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ class IPTVUtil {
continue;
}

final groupName = RegExp('group-title="(.*?)"').firstMatch(line)?.group(1) ?? '其他';
final name = line.split(',')[1];

final groupName = RegExp('group-title="(.*?)"').firstMatch(line)?.group(1) ?? '其他';
if (groupName != '总台高清' && groupName != '卫视高清') continue;

final group = groupList.firstWhere((it) => it.name == groupName, orElse: () {
final group = IPTVGroup(idx: groupList.length, name: groupName, list: []);
groupList.add(group);
Expand Down

0 comments on commit 757d8c6

Please sign in to comment.