~mterry/sonata-app/trunk

« back to all changes in this revision

Viewing changes to app/soco/data_structures.py

  • Committer: Michael Terry
  • Date: 2015-08-18 03:07:23 UTC
  • Revision ID: mike@mterry.name-20150818030723-nn180h7lsrw5ew36
Notice when it's a TV playing

Show diffs side-by-side

added added

removed removed

Lines of Context:
356
356
        # Check we have the right sort of element. tag can be an empty string
357
357
        # which indicates that any tag is allowed (see eg the musicAlbum DIDL
358
358
        # class)
359
 
        #if not element.tag.endswith(cls.tag):
360
 
        #    raise DIDLMetadataError(
361
 
        #        "Wrong element. Expected '<{0}>',"
362
 
        #        " got '<{1}>'".format(cls.tag, element.tag))
 
359
        #SONATA if not element.tag.endswith(cls.tag):
 
360
        #SONATA     raise DIDLMetadataError(
 
361
        #SONATA         "Wrong element. Expected '<{0}>',"
 
362
        #SONATA         " got '<{1}>'".format(cls.tag, element.tag))
363
363
        # and that the upnp matches what we are expecting
364
364
        item_class = element.find(ns_tag('upnp', 'class')).text
365
365
        if item_class != cls.item_class:
598
598
 
599
599
    """An audio item."""
600
600
 
601
 
    item_class = 'object.item.audioitem'
 
601
    item_class = 'object.item.audioItem' #SONATA
602
602
    _translation = DidlItem._translation.copy()
603
603
    _translation.update(
604
604
        {