Skip to content

Commit

Permalink
Merge pull request #145 from sonroyaalmerol/sonroyaalmerol-patch-1
Browse files Browse the repository at this point in the history
Goroutine panic hotfix
  • Loading branch information
sonroyaalmerol committed Aug 28, 2024
2 parents a814d17 + a93e197 commit 8cc11c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions m3u/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,14 @@ func ParseM3UFromURL(streams map[string]*database.StreamInfo, m3uURL string, m3u
if !ok {
streams[streamInfo.Title] = &streamInfo
} else {
maps.Copy(streams[streamInfo.Title].URLs, streamInfo.URLs)
}
if streams[streamInfo.Title].URLs == nil {
streams[streamInfo.Title].URLs = map[int]string{}
}

if streamInfo.URLs != nil {
maps.Copy(streams[streamInfo.Title].URLs, streamInfo.URLs)
}
}
mu.Unlock()
}
}()
Expand Down

0 comments on commit 8cc11c3

Please sign in to comment.