FFProbe.Data.Tags
type TagList = [(String, TagValue)] Source #
data TagValue Source #
Constructors
If the constructor is Other, the String is a JSON representation of the value
Other
Defined in FFProbe.Data.Tags
Methods
parseJSON :: Value -> Parser TagValue #
parseJSONList :: Value -> Parser [TagValue] #
showsPrec :: Int -> TagValue -> ShowS #
show :: TagValue -> String #
showList :: [TagValue] -> ShowS #
(==) :: TagValue -> TagValue -> Bool #
(/=) :: TagValue -> TagValue -> Bool #
class HasTags a where Source #
getTags :: a -> TagList Source #
Defined in FFProbe.Data.Chapter
getTags :: Chapter -> TagList Source #
Defined in FFProbe.Data.Format
getTags :: Format -> TagList Source #
Defined in FFProbe.Data.Stream
getTags :: Stream -> TagList Source #
lookupTag :: HasTags a => String -> a -> Maybe TagValue Source #
Lookup a tag in a TagList, using a key