aboutsummaryrefslogtreecommitdiff
path: root/Command/ImportFeed.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-08-19 12:24:55 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-08-19 12:24:55 -0400
commit52f4a0722c3c6f71cea0666cba3f27adc085d629 (patch)
tree3789171e5fc0628d4fcd549309333ce1cd9eb9ee /Command/ImportFeed.hs
parentbbd8b63d4768c51bb804dcf03a17fdd895997ab5 (diff)
importfeed --relaxed: Avoid hitting the urls of items in the feed.
Diffstat (limited to 'Command/ImportFeed.hs')
-rw-r--r--Command/ImportFeed.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Command/ImportFeed.hs b/Command/ImportFeed.hs
index 46e1b6dbe..d82d73447 100644
--- a/Command/ImportFeed.hs
+++ b/Command/ImportFeed.hs
@@ -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