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

feat: use podcast duration tag as reading time

This commit is contained in:
Romain de Laage 2023-08-12 12:01:15 +02:00 committed by Frédéric Guillot
parent 168a870c02
commit fb8737e330
2 changed files with 33 additions and 1 deletions

View file

@ -199,6 +199,9 @@ func (r *rssItem) Transform() *model.Entry {
entry.Title = r.entryTitle()
entry.Enclosures = r.entryEnclosures()
entry.Tags = r.entryCategories()
if duration, err := normalizeDuration(r.Duration); err == nil {
entry.ReadingTime = duration
}
return entry
}