1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

refactor(processor): remove a duplication function call

As youtubeVideoID is assigned to getVideoIDFromYouTubeURL(entry.URL),
there is no need to call the latter again when we can simly use youtubeVideoID
instead.
This commit is contained in:
jvoisin 2025-06-18 22:30:28 +02:00 committed by Frédéric Guillot
parent f31a784eaa
commit 5cff4d7117

View file

@ -94,7 +94,7 @@ func fetchYouTubeWatchTimeInBulk(entries []*model.Entry) {
continue
}
videosEntriesMapping[getVideoIDFromYouTubeURL(entry.URL)] = entry
videosEntriesMapping[youtubeVideoID] = entry
videoIDs = append(videoIDs, youtubeVideoID)
}