--- a/src/mediaserver/cdplugins/pycommon/upmplgmodels.py
+++ b/src/mediaserver/cdplugins/pycommon/upmplgmodels.py
@@ -27,6 +27,7 @@
class Album(Model):
+ upnpclass = "object.container.album.musicAlbum"
name = "Unknown"
artist = None
artists = []
@@ -37,11 +38,13 @@
class Artist(Model):
+ upnpclass = "object.container.person.musicArtist"
name = "Unknown"
role = None
class Playlist(Model):
+ upnpclass = "object.container.album"
name = None
description = None
num_tracks = -1
@@ -49,6 +52,7 @@
class Track(Model):
+ upnpclass = "object.item.audioItem.musicTrack"
duration = -1
track_num = -1
disc_num = 1
@@ -69,5 +73,6 @@
class Category(Model):
image = None
+
class Genre(Model):
pass