Skip to content

Commit

Permalink
fix parsing grouops
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman SHamagin committed Nov 20, 2023
1 parent c69b3e9 commit 8ee1f31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ func (c *Config) marshallInto(into *os.File, xtream bool) error {
filteredTrack := make([]m3u.Track, 0, len(c.playlist.Tracks))
ret := 0
_, _ = into.WriteString("#EXTM3U\n") // nolint: errcheck
re := regexp.MustCompile(`FHD|\+|orig`)
re := regexp.MustCompile(`FHD|\+|orig| 4K`)

for i, track := range c.playlist.Tracks {
if re.MatchString(track.Name) {
ret++
continue
}
var buffer bytes.Buffer
Expand Down

0 comments on commit 8ee1f31

Please sign in to comment.