importfeed --relaxed: Avoid hitting the urls of items in the feed.
This commit is contained in:
parent
f30a7ccc42
commit
0f5d6c09ac
7 changed files with 16 additions and 4 deletions
|
@ -172,7 +172,9 @@ performDownload opts cache todownload = case location todownload of
|
|||
r <- Remote.claimingUrl url
|
||||
if Remote.uuid r == webUUID || rawOption opts
|
||||
then do
|
||||
urlinfo <- Url.withUrlOptions (Url.getUrlInfo url)
|
||||
urlinfo <- if relaxedOption opts
|
||||
then pure Url.assumeUrlExists
|
||||
else Url.withUrlOptions (Url.getUrlInfo url)
|
||||
maybeToList <$> addUrlFile (relaxedOption opts) url urlinfo f
|
||||
else do
|
||||
res <- tryNonAsync $ maybe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue