Skip to content

Commit 5464943

Browse files
committed
minor fixes.
1 parent ca7b26c commit 5464943

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hlsvod/manager.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (m *ManagerCtx) fetchMetadata(ctx context.Context) (err error) {
158158
}
159159

160160
elapsed := time.Since(start)
161-
m.logger.Info().Interface("duration", elapsed).Msg("fetched metadata")
161+
m.logger.Info().Stringer("duration", elapsed).Msg("fetched metadata")
162162
return
163163
}
164164

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

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

248248
// join with newlines
249-
return strings.Join(playlist, "\n")
249+
return strings.Join(playlist, "\n") + "\n"
250250
}
251251

252252
func (m *ManagerCtx) initialize() {

hlsvod/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ func StreamsPlaylist(profiles map[string]VideoProfile, segmentNameFmt string) st
8787
}
8888

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

0 commit comments

Comments
 (0)