Skip to content

Commit

Permalink
Merge b4a9fdf into 3e74880
Browse files Browse the repository at this point in the history
  • Loading branch information
pwt committed Jul 9, 2020
2 parents 3e74880 + b4a9fdf commit f5d4278
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions soco/data_structures.py
Expand Up @@ -942,6 +942,14 @@ class DidlRecentShow(DidlMusicTrack):
item_class = "object.item.audioItem.musicTrack.recentShow"


class DidlPodcast(DidlAudioItem):

"""Class that represents a podcast."""

# the DIDL Lite class for this object.
item_class = "object.item.audioItem.podcast"


class DidlAudioBroadcastFavorite(DidlAudioBroadcast):

"""Class that represents an audio broadcast Sonos favorite."""
Expand Down
1 change: 1 addition & 0 deletions tests/official_and_extended_didl_classes.txt
Expand Up @@ -7,6 +7,7 @@
# O object.item.audioItem.musicTrack -> <class 'soco.data_structures.DidlMusicTrack'>
# O object.item.audioItem.audioBook -> <class 'soco.data_structures.DidlAudioBook'>
# O object.item.audioItem.audioBroadcast -> <class 'soco.data_structures.DidlAudioBroadcast'>
# E object.item.audioItem.podcast -> <class 'soco.data_structures.DidlPodcast'>
# E object.item.audioItem.musicTrack.recentShow -> <class 'soco.data_structures.DidlRecentShow'>
# E object.item.audioItem.audioBroadcast.sonos-favorite -> <class 'soco.data_structures.DidlAudioBroadcastFavorite'>
# E object.itemobject.item.sonos-favorite -> <class 'soco.data_structures.DidlFavorite'>
Expand Down

0 comments on commit f5d4278

Please sign in to comment.