autobrr/internal/feed
Ignacio 9a47dbc588
fix(feeds): RSS improve torrent size parsing (#667)
* Fixes issue 636 - fail to parse torrent size on some RSS feeds when enclosure is a fixed value

* Pick the biggest size

* minor comment

* Updates release size when new parsed string size is bigger

- Sets default size of `Release` to zero (unparsed)
- When there are parsing errors, then it doesn't RESET the size to 0 (assuming a tracker providing some size that can't be parsed)
- Updates the size to the new size only if the parsed size is bigger than the previous.

* fix(feeds): ignore default 39399 enclosure size

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
2023-02-05 19:18:17 +01:00
..
client.go feat(feeds): improve RSS (#502) 2022-10-18 18:51:10 +02:00
rss.go fix(feeds): RSS improve torrent size parsing (#667) 2023-02-05 19:18:17 +01:00
rss_test.go feat(filters): support Language filtering (#632) 2023-01-09 00:33:08 +01:00
service.go feat(feeds): view latest RSS and Torznab feed (#609) 2023-01-02 23:00:11 +01:00
torznab.go enhancement(feeds): torznab freeleech percentage (#647) 2023-01-15 18:17:51 +01:00