Copyright | This file is part of the package vimeta. It is subject to the license terms in the LICENSE file found in the top-level directory of this distribution and at: https://github.com/pjones/vimeta No part of this package including this file may be copied modified propagated or distributed except according to the terms contained in the LICENSE file. |
---|---|
License | BSD-2-Clause |
Safe Haskell | None |
Language | Haskell2010 |
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.
Instances
Eq EpisodeSpec Source # | |
Defined in Vimeta.UI.Common.TV (==) :: EpisodeSpec -> EpisodeSpec -> Bool # (/=) :: EpisodeSpec -> EpisodeSpec -> Bool # | |
Ord EpisodeSpec Source # | |
Defined in Vimeta.UI.Common.TV 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 showsPrec :: Int -> EpisodeSpec -> ShowS # show :: EpisodeSpec -> String # showList :: [EpisodeSpec] -> ShowS # |
tagWithMappingFile :: MonadIO m => TV -> FilePath -> Vimeta m () Source #
Handy tagging function using mapping files.
:: MonadIO m | |
=> TV | Full TV series. |
-> [(FilePath, EpisodeSpec)] | File mapping. |
-> Vimeta m () |
Tag all of the given files with their matching EpisodeSpec
.
:: 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
.