Normalization Providers

Overview

Providers that know how to normalize specific input patterns like Artist names, Album strings or Songtitles.

Reference

class munin.provider.normalize.AlbumNormalizeProvider(**kwargs)[source]

Normalize an Album name by normalizing common patterns.

Takes a single string, outputs a tuple with one normalized name in it.

Usage example:

>>> provider = ArtistNormalizeProvider()
>>> provider.do_process('## The Art of getting bugs (live) CD 12')
('the art of getting bugs', )

This provider loosely follows this convention:

class munin.provider.normalize.ArtistNormalizeProvider(**kwargs)[source]

Normalize an Artist Name by normalizing common patterns.

Takes a single string, outputs a iterable of subartists

Usage example:

>>> provider = ArtistNormalizeProvider()
>>> provider.do_process('BertaX & Gustl')
('bertax', 'gustl')
>>> provider.do_process("A Diablo's Swing Orchästra")
('diablo swing orchästra')
>>> provider.do_process('a feat. b')
('a', 'b')
>>> provider.do_process('The Beatles')
('beatles', )

This provider loosely follows this convention:

class munin.provider.normalize.NormalizeProvider(compress=False)[source]

Very simple provider that normalizes input strings.

Returns a tuple with a single normalized string in it.

Usage example:

>>> provider = NormalizeProvider()
>>> provider.do_process('    aBc  ')
('abc', )

Additionaly unicode glyphs are normalized with the NFKC method.

Create a new Provider with the following attributes:

Parameters:compress – Deduplicate data?
munin.provider.normalize.TitleNormalizeProvider

alias of AlbumNormalizeProvider

Table Of Contents

Related Topics

This Page

Useful links:

Package:

Github: