mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3701 from omnivore-app/fix/youtube-upload-date
Set published date from youtube data
This commit is contained in:
commit
3abd1bf377
1 changed files with 5 additions and 0 deletions
|
|
@ -388,6 +388,11 @@ export const processYouTubeVideo = async (
|
|||
duration = video.duration
|
||||
}
|
||||
|
||||
if (video.uploadDate && !Number.isNaN(Date.parse(video.uploadDate))) {
|
||||
needsUpdate = true
|
||||
libraryItem.publishedAt = new Date(video.uploadDate)
|
||||
}
|
||||
|
||||
if (
|
||||
await findFeatureByName(FeatureName.YouTubeTranscripts, jobData.userId)
|
||||
) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue