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:
Joey Hess 2013-07-28 17:24:30 -04:00
parent 66dfeaff44
commit 18541bf3fa

View file

@ -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