Skip to content

Commit

Permalink
minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Dec 31, 2024
1 parent ca7b26c commit 5464943
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hlsvod/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (m *ManagerCtx) fetchMetadata(ctx context.Context) (err error) {
}

elapsed := time.Since(start)
m.logger.Info().Interface("duration", elapsed).Msg("fetched metadata")
m.logger.Info().Stringer("duration", elapsed).Msg("fetched metadata")
return
}

Expand All @@ -178,7 +178,7 @@ func (m *ManagerCtx) loadMetadata(ctx context.Context) error {
return nil
}

m.logger.Err(err).Msg("cache unmarhalling returned error, replacing")
m.logger.Err(err).Msg("cache unmarshalling returned error, replacing")
} else if !errors.Is(err, os.ErrNotExist) {
m.logger.Err(err).Msg("cache hit returned error, replacing")
}
Expand Down Expand Up @@ -246,7 +246,7 @@ func (m *ManagerCtx) getPlaylist() string {
)

// join with newlines
return strings.Join(playlist, "\n")
return strings.Join(playlist, "\n") + "\n"
}

func (m *ManagerCtx) initialize() {
Expand Down
2 changes: 1 addition & 1 deletion hlsvod/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ func StreamsPlaylist(profiles map[string]VideoProfile, segmentNameFmt string) st
}

// join with newlines
return strings.Join(playlist, "\n")
return strings.Join(playlist, "\n") + "\n"
}

0 comments on commit 5464943

Please sign in to comment.