fix(feeds): always upgrade size from RSS description (#1458)

* fix(rss): add additional test for size

* always upgrade from desc
This commit is contained in:
Kyle Sanderson 2024-03-19 09:06:49 -07:00 committed by GitHub
parent 93538d0254
commit d86b2333a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View file

@ -210,10 +210,8 @@ func (j *RSSJob) processItem(item *gofeed.Item) *domain.Release {
if item.Description != "" {
rls.Description = item.Description
if rls.Size == 0 {
readSizeFromDescription(item.Description, rls)
j.Log.Trace().Msgf("Set new size %d from description", rls.Size)
}
readSizeFromDescription(item.Description, rls)
j.Log.Trace().Msgf("Set new size %d from description", rls.Size)
}
// add cookie to release for download if needed