Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TrackInfo = TrackInfo {}
- data TrackByPath = TrackByPath {}
- type SongFilePath = FilePath
- type TrackIdentifier = Either TrackByPath TrackInfo
- newtype TrackIdentifierWithEq = TIWE TrackIdentifier
- extractUrl :: TrackIdentifier -> SongFilePath
- pattern OnlyMissingArtist :: TrackByPath
- data DBusError
- tryGetInfo :: (MonadState ConnState m, MonadIO m) => m (Either DBusError TrackIdentifier)
- obtainTrackInfo :: Map Text Variant -> Either DBusError TrackIdentifier
- xesamArtistFix :: Maybe Text -> Maybe [Text] -> Maybe Text
- cleanTrack :: Functor m => Pipe TrackIdentifier TrackIdentifier m a
- cleanTitle :: Text -> Text
- musicFormats :: [Text]
- vlcFix :: SongFilePath -> SongFilePath
Documentation
data TrackByPath Source #
Instances
Show TrackByPath Source # | |
Defined in MusicScroll.TrackInfo showsPrec :: Int -> TrackByPath -> ShowS # show :: TrackByPath -> String # showList :: [TrackByPath] -> ShowS # |
type SongFilePath = FilePath Source #
type TrackIdentifier = Either TrackByPath TrackInfo Source #
newtype TrackIdentifierWithEq Source #
Instances
Eq TrackIdentifierWithEq Source # | |
Defined in MusicScroll.TrackInfo (==) :: TrackIdentifierWithEq -> TrackIdentifierWithEq -> Bool # (/=) :: TrackIdentifierWithEq -> TrackIdentifierWithEq -> Bool # |
pattern OnlyMissingArtist :: TrackByPath Source #
tryGetInfo :: (MonadState ConnState m, MonadIO m) => m (Either DBusError TrackIdentifier) Source #
cleanTrack :: Functor m => Pipe TrackIdentifier TrackIdentifier m a Source #
cleanTitle :: Text -> Text Source #
This functions does two main things: 1. Remove format at the end, ie .mp3, .opus etc. 2. Remove the leading order separators, ie "05 - song name" -> "song name"
musicFormats :: [Text] Source #
vlcFix :: SongFilePath -> SongFilePath Source #