Skip to content

Commit e54fa89

Browse files
authored
Add files via upload
1 parent b88ed25 commit e54fa89

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

FCLiveToolApplication/VideoListPage.xaml.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,8 @@ private async void M3U8ValidRemoveBtn_Clicked(object sender, EventArgs e)
14131413
return;
14141414
}
14151415

1416-
1416+
int tNOKRemoveCount = 0;
1417+
int tOKRemoveCount = 0;
14171418
CurrentVideosDetailList.ForEach(p =>
14181419
{
14191420
if (p.HTTPStatusCode!="OK"&&p.HTTPStatusCode!=null)
@@ -1423,15 +1424,18 @@ private async void M3U8ValidRemoveBtn_Clicked(object sender, EventArgs e)
14231424
string m3u8Str = GetFullM3U8Str(p);
14241425
if (m3u8Str is "")
14251426
{
1426-
//备用
1427+
//如果仍然不能搜索到完整的字符串,那就不进行替换
1428+
tNOKRemoveCount++;
14271429
}
1428-
if (m3u8Str is null)
1430+
else if (m3u8Str is null)
14291431
{
14301432
AllVideoData=AllVideoData.Replace(p.FullM3U8Str, "");
1433+
tOKRemoveCount++;
14311434
}
14321435
else
14331436
{
14341437
AllVideoData=AllVideoData.Replace(m3u8Str, "");
1438+
tOKRemoveCount++;
14351439
}
14361440

14371441
}
@@ -1442,7 +1446,7 @@ private async void M3U8ValidRemoveBtn_Clicked(object sender, EventArgs e)
14421446
SetVDLPage(1);
14431447
MakeVideosDataToPage(CurrentVideosDetailList, 0);
14441448

1445-
await DisplayAlert("提示信息", "已成功移除无效的直播信号!", "确定");
1449+
await DisplayAlert("提示信息", "已成功从列表里移除所有无效的直播信号!\n已从M3U文件缓存里移除无效的直播信号"+tOKRemoveCount+"条,未成功移除"+tNOKRemoveCount+"条。", "确定");
14461450

14471451
}
14481452

@@ -1533,7 +1537,7 @@ private async void VDLSearchBtn_Clicked(object sender, EventArgs e)
15331537
}
15341538

15351539
List<VideoDetailList> tlist = DoRegex(AllVideoData, treg);
1536-
if(tlist.Count<1)
1540+
if (tlist.Count<1)
15371541
{
15381542
tlist = DoRegex(AllVideoData, RecommendReg);
15391543
DisplayAlert("提示信息", "当前解析方案未能解析出直播源,已改为推荐的方案去解析并执行搜索。", "确定");

0 commit comments

Comments
 (0)