| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Vimeta.UI.Common.TV
Synopsis
- data EpisodeSpec = EpisodeSpec Int Int
- tagWithMappingFile :: MonadIO m => TV -> FilePath -> Vimeta m ()
- tagWithSpec :: MonadIO m => TV -> [(FilePath, EpisodeSpec)] -> Vimeta m ()
- tagWithFileOrder :: MonadIO m => TV -> EpisodeSpec -> [FilePath] -> Vimeta m ()
- episodeSpec :: Episode -> EpisodeSpec
Documentation
data EpisodeSpec Source #
A simple way to specify a single episode.
Constructors
| EpisodeSpec Int Int |
Instances
| Eq EpisodeSpec Source # | |
Defined in Vimeta.UI.Common.TV | |
| Ord EpisodeSpec Source # | |
Defined in Vimeta.UI.Common.TV Methods compare :: EpisodeSpec -> EpisodeSpec -> Ordering # (<) :: EpisodeSpec -> EpisodeSpec -> Bool # (<=) :: EpisodeSpec -> EpisodeSpec -> Bool # (>) :: EpisodeSpec -> EpisodeSpec -> Bool # (>=) :: EpisodeSpec -> EpisodeSpec -> Bool # max :: EpisodeSpec -> EpisodeSpec -> EpisodeSpec # min :: EpisodeSpec -> EpisodeSpec -> EpisodeSpec # | |
| Show EpisodeSpec Source # | |
Defined in Vimeta.UI.Common.TV Methods showsPrec :: Int -> EpisodeSpec -> ShowS # show :: EpisodeSpec -> String # showList :: [EpisodeSpec] -> ShowS # | |
tagWithMappingFile :: MonadIO m => TV -> FilePath -> Vimeta m () Source #
Handy tagging function using mapping files.
Arguments
| :: MonadIO m | |
| => TV | Full TV series. |
| -> [(FilePath, EpisodeSpec)] | File mapping. |
| -> Vimeta m () |
Tag all of the given files with their matching EpisodeSpec.
Arguments
| :: MonadIO m | |
| => TV | Full TV series. |
| -> EpisodeSpec | Starting episode. |
| -> [FilePath] | List of files to tag. |
| -> Vimeta m () |
Tag the given files, starting at the given EpisodeSpec.
episodeSpec :: Episode -> EpisodeSpec Source #
Create an EpisodeSpec from an Episode.