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
|
||||
showOutput
|
||||
liftIO $ withTmpFile "feed" $ \f h -> do
|
||||
fileEncoding h
|
||||
ifM (Url.download url [] [] f)
|
||||
( parseFeedString <$> hGetContentsStrict h
|
||||
, return Nothing
|
||||
|
|
Loading…
Reference in a new issue