1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-22 17:18:37 +00:00

Convert enclosure size field to bigint

This commit is contained in:
Frédéric Guillot 2018-03-14 20:09:06 -07:00
parent fec391a336
commit 482785c5e6
7 changed files with 9 additions and 6 deletions

View file

@ -187,7 +187,7 @@ func getEnclosures(a *atomEntry) model.EnclosureList {
for _, link := range a.Links {
if strings.ToLower(link.Rel) == "enclosure" {
length, _ := strconv.Atoi(link.Length)
length, _ := strconv.ParseInt(link.Length, 10, 0)
enclosures = append(enclosures, &model.Enclosure{URL: link.URL, MimeType: link.Type, Size: length})
}
}