don't crash on encoding issues in feeds
filesystem encoding to the rescue once more! IIRC this was the main bug in hpodder.
This commit is contained in:
parent
66dfeaff44
commit
18541bf3fa
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ downloadFeed :: URLString -> Annex (Maybe Feed)
|
||||||
downloadFeed url = do
|
downloadFeed url = do
|
||||||
showOutput
|
showOutput
|
||||||
liftIO $ withTmpFile "feed" $ \f h -> do
|
liftIO $ withTmpFile "feed" $ \f h -> do
|
||||||
|
fileEncoding h
|
||||||
ifM (Url.download url [] [] f)
|
ifM (Url.download url [] [] f)
|
||||||
( parseFeedString <$> hGetContentsStrict h
|
( parseFeedString <$> hGetContentsStrict h
|
||||||
, return Nothing
|
, return Nothing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue