""" abouttag.music Standard about tags for tracks, albums and artists. Copyright 2010 AUTHORS (see AUTHORS file) License: MIT, see LICENSE for more information """ import unittest from abouttag import about from abouttag.nacolike import normalize from abouttag.books import normalize_work normalize_track = normalize_work(u'track', preserveAlpha=True, move_surname=False) normalize_album = normalize_work(u'album', preserveAlpha=True, move_surname=False) def track(title, artist, **kwargs): """Usage: from abouttag.music import track print track(u"Solilaï", u'Pierre Bensusan') print track(u'Bamboulé', u'Bensusan and Malherbe') print track(u'''Archie Campbell/Marjorie Campbell/Miss Lyall's ''' u'''Strathspey/Miss Lyall's Reel/The St Kilda Wedding''', u'The Cast')
""" abouttag.film Standard about tags for films (movies) Copyright 2010 AUTHORS (see AUTHORS file) License: MIT, see LICENSE for more information """ import unittest from abouttag import about from abouttag.nacolike import normalize from abouttag.books import normalize_work normalize_film = normalize_work(u'film', preserveAlpha=True, move_surname=False) def film(title, year, **kwargs): """Usage: from abouttag.film import film print film(u"Citizen Kane", u'1941') """ if 'convention' in kwargs: assert kwargs['convention'].lower() == u'track-u' if type(year) == int: year = str(year) assert len(year) == 4 assert all('0' <= y <= '9' for y in year)