Kodi Community Forum

Full Version: ListItem.DBType for m3u playlists
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been updating media views and simplifying things by using ListItem.DBtype to control what info is displayed.  It generally works very well.  The one place where I need to code around a problem is when local m3u playlists are loaded.  When the m3u is in the local music or mixed playlist folder, and loaded in music window it is set as Container.Content songs and ListItem.DBType is empty.  This is true whether the m3u is actually songs or mixed (songs and musicvideos).  So it is hard to determine if a listitem is a song or musicvideo or nothing (eg parent folder).  When the m3u is in the local video or mixed playlist folder, and loaded in videos window it is set as Container.Content files and again ListItem.DBType is empty.

So it makes for some difficult testing of a listitem to determine actual content.  Is it possible to either

a)  add ListItem.DBType for m3u playlist items in media windows
or at least
b) use a consistent Container.Content between videos and music (suggest "files" as that seems how files node is loaded).

scott s.
.