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:
parent
b48e6472f5
commit
2cfeefc8d2
5 changed files with 88 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue