check if quvi page url has already been downloaded before

That is the url that is typically stored in the git-annex branch.

Kept the check for the video url too, just in case.
This commit is contained in:
Joey Hess 2014-01-05 13:07:21 -04:00
parent 578eaaa828
commit 9e6b2144f9

View file

@ -134,7 +134,7 @@ performDownload relaxed cache todownload = case location todownload of
Enclosure url -> checkknown url $ Enclosure url -> checkknown url $
rundownload url (takeExtension url) $ rundownload url (takeExtension url) $
addUrlFile relaxed url addUrlFile relaxed url
QuviLink pageurl -> do QuviLink pageurl -> checkknown pageurl $ do
mp <- withQuviOptions Quvi.query [Quvi.quiet, Quvi.httponly] pageurl mp <- withQuviOptions Quvi.query [Quvi.quiet, Quvi.httponly] pageurl
case mp of case mp of
Nothing -> return False Nothing -> return False