Source code for coherence.upnp.core.dlna

# Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php

# Copyright 2007 - Frank Scholz <coherence@beebits.net>

""" DLNA decorator functions

"""


[docs]def AudioItem(func): def add(*args, **kwargs): result = func(*args, **kwargs) e = result.find('upnp:albumArtURI') if e is not None: e.attrib['dlna:profileID'] = 'JPEG_TN' return result return add