As youtubeVideoID is assigned to getVideoIDFromYouTubeURL(entry.URL), there is no need to call the latter again when we can simly use youtubeVideoID instead.
@@ -94,7 +94,7 @@ func fetchYouTubeWatchTimeInBulk(entries []*model.Entry) {
continue
}
- videosEntriesMapping[getVideoIDFromYouTubeURL(entry.URL)] = entry
+ videosEntriesMapping[youtubeVideoID] = entry
videoIDs = append(videoIDs, youtubeVideoID)