1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00

test(processor): increase test coverage for parseISO8601Duration

This commit is contained in:
Frédéric Guillot 2025-07-07 16:56:00 -07:00
parent b48e6472f5
commit 2cfeefc8d2
5 changed files with 88 additions and 35 deletions

View file

@ -118,7 +118,7 @@ func fetchYouTubeWatchTimeFromApiInBulk(videoIDs []string) (map[string]time.Dura
watchTimeMap := make(map[string]time.Duration, len(videos.Items))
for _, video := range videos.Items {
duration, err := parseISO8601(video.ContentDetails.Duration)
duration, err := parseISO8601Duration(video.ContentDetails.Duration)
if err != nil {
slog.Warn("Unable to parse ISO8601 duration", slog.Any("error", err))
continue