Skip to content

Commit

Permalink
FIX: stop loading EPG if EPG not found for one single channel
Browse files Browse the repository at this point in the history
  • Loading branch information
empty88 committed May 21, 2024
1 parent feea941 commit 11ca8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ViewModels/MainViewModel.vb
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ Namespace ViewModels

For Each channel In ChannelList
Dim firstEpg = channel.EpgInfos.FirstOrDefault()
If firstEpg Is Nothing OrElse firstEpg.StartTime.Equals("0") Then Return False
If firstEpg Is Nothing OrElse firstEpg.StartTime.Equals("0") Then Continue For

Dim difference As Long = firstEpg.StartTime - earliestEpg.StartTime
Application.Current.Dispatcher.Invoke(Sub() channel.EpgInfos.Insert(0, New EpgInfoViewModel(difference)))
Expand Down

0 comments on commit 11ca8a8

Please sign in to comment.