mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
fix(rss): use custom client for rss tests (#1557)
This commit is contained in:
parent
5e88d08b35
commit
1530e9516d
1 changed files with 1 additions and 2 deletions
|
@ -18,7 +18,6 @@ import (
|
|||
"github.com/autobrr/autobrr/pkg/torznab"
|
||||
|
||||
"github.com/dcarbone/zadapters/zstdlog"
|
||||
"github.com/mmcdole/gofeed"
|
||||
"github.com/robfig/cron/v3"
|
||||
"github.com/rs/zerolog"
|
||||
)
|
||||
|
@ -255,7 +254,7 @@ func (s *service) test(ctx context.Context, feed *domain.Feed) error {
|
|||
}
|
||||
|
||||
func (s *service) testRSS(ctx context.Context, feed *domain.Feed) error {
|
||||
f, err := gofeed.NewParser().ParseURLWithContext(feed.URL, ctx)
|
||||
f, err := NewFeedParser(time.Duration(feed.Timeout)*time.Second, feed.Cookie).ParseURLWithContext(ctx, feed.URL)
|
||||
if err != nil {
|
||||
s.log.Error().Err(err).Msgf("error fetching rss feed items")
|
||||
return errors.Wrap(err, "error fetching rss feed items")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue