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:
parent
168a870c02
commit
fb8737e330
2 changed files with 33 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue