Probe for quvi version at run time.
Overhead: git annex addurl runs quvi --version once. And more bloat to Annex state..
This commit is contained in:
parent
9ec1441a94
commit
7ac37a7854
8 changed files with 80 additions and 43 deletions
|
@ -108,7 +108,7 @@ findDownloads u = go =<< downloadFeed u
|
|||
Nothing -> mkquvi f i
|
||||
#ifdef WITH_QUVI
|
||||
mkquvi f i = case getItemLink i of
|
||||
Just link -> ifM (liftIO $ Quvi.supported link)
|
||||
Just link -> ifM (quviSupported link)
|
||||
( return $ Just $ ToDownload f u i $ QuviLink link
|
||||
, return Nothing
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue