ISDBSongData::IsntInDB: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
(→‎Property description: Reworked the description so that it makes a little bit more sense.)
 
Line 3: Line 3:
===Property description===
===Property description===


Returns True if the track is not stored in the Library.
Returns True if the track is not stored in the Library. Defaults to False.
Returns False when
Returns False when
# Track is in the Library (SongID > 0)
# Track is in the Library (SongID > 0)
# When MM does not know anything yet (SongID = -1)
# When MM does not know anything yet (SongID = -1)


Because MM has to query the database in order to set this property, setting this property to True makes MM not to do the query. This is done by device plug-ins extensively in order to avoid database queries.
In order for this property to be updated, MM needs to query the database. If the user sets this property to False, MM will not do a query to the database. This is done by device plug-ins extensively in order to avoid expensive database queries.


Info taken from [[http://www.mediamonkey.com/forum/viewtopic.php?p=39581#39581 this post by Jiri]].
Info taken from [[http://www.mediamonkey.com/forum/viewtopic.php?p=39581#39581 this post by Jiri]].

Latest revision as of 17:39, 30 September 2009

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let IsntInDB As Boolean


Property description

Returns True if the track is not stored in the Library. Defaults to False. Returns False when

  1. Track is in the Library (SongID > 0)
  2. When MM does not know anything yet (SongID = -1)

In order for this property to be updated, MM needs to query the database. If the user sets this property to False, MM will not do a query to the database. This is done by device plug-ins extensively in order to avoid expensive database queries.

Info taken from [this post by Jiri].