cut-the-crap-2.3.0: Cuts out uninteresting parts of videos by detecting silences.
Safe HaskellNone
LanguageHaskell2010

Cut.Download

Description

Deal with downloading and the cli options involved

Synopsis

Documentation

downloadIfNeccisary :: MonadMask m => MonadIO m => FileIO InputSource -> (FileIO FilePath -> m a) -> m a Source #

FileIO can have a remote, if so we download that and pass the downloaded path to the continuation, if not we simply pass the input path to the continuation. We need a continuation to clean up the downloaded file.

downloadCutifNeccisary :: MonadMask m => MonadIO m => ListenCutOptionsT InputSource -> (ListenCutOptionsT FilePath -> m a) -> m a Source #

this does the same as downloadIfNeccisary but makes it work for ListenCutOptionsT with some type weaving