View Issue Details

IDProjectCategoryView StatusLast Update
0006412MMW v4Framework: Scripts/Extensionspublic2015-02-05 15:13
ReporterBex Assigned To 
PriorityhighSeverityfeatureReproducibilityN/A
Status assignedResolutionreopened 
Product Version3.2.1 
Target Version4.0.7Fixed in Version4.0 
Summary0006412: Scripting: Implement function GetAutoPlaylistQuery
DescriptionIt would be nice if scripters could retrieve the SQL's WHERE part from an AutoPlaylist. It has been requested before and there are many scripts which would benefit from it.

Something like:
Function SDB.Database.GetAutoPlaylistQuery(ID As Integer) As String
Where ID is the internal number of the AutoPlaylist.

It should work exactly like GetFilterQuery works:
http://www.mediamonkey.com/wiki/index.php/ISDBDatabase::GetFilterQuery
Steps To ReproduceRelated to:
http://www.mediamonkey.com/forum/viewtopic.php?f=19&t=53221
TagsNo tags attached.
Fixed in build1345

Relationships

related to 0006587 closedLudek Scripting: Implement ISDBApplication::PlaylistByID 
related to 0006723 assignedpeke ISDBPlaylist::SetAutoplaylistQuery method needed 

Activities

peke

2010-10-24 00:07

developer   ~0020931

Assigned to you regarding Forum topic you replied in

jiri

2010-10-25 02:55

administrator   ~0020936

This would be nice to add to MM 4.0. I'd make it a SDBPlaylist object property.

peke

2010-10-25 19:19

developer   ~0020978

Last edited: 2010-10-25 19:20

I think you misunderstand meaning of GetAutoPlaylistQuery which mean retrieve SQL query of AutoPlaylist not AutoPlaylist content. We are already able to do that using http://www.mediamonkey.com/wiki/index.php/SDBPlaylists and http://www.mediamonkey.com/wiki/index.php/ISDBApplication::PlaylistByTitle which return http://www.mediamonkey.com/wiki/index.php/SDBPlaylist

feature you are talking about would be http://www.mediamonkey.com/wiki/index.php/ISDBApplication::PlaylistByID which would be same as http://www.mediamonkey.com/wiki/index.php/ISDBApplication::PlaylistByTitle but instead of String Parameter Playlist ID would be used.

jiri

2010-10-25 21:04

administrator   ~0020979

Ok, we might need ISDBApplication::PlaylistByID method as well, but what I wanted to say is that GetAutoPlaylistQuery shouldn't be Application or Database objects property, it should be directly Playlist property.

peke

2010-10-25 21:44

developer   ~0020980

You are right.

GetPlaylistQuery should be part of Playlist property. It should be easy to return SQL query for both Static and Auto-Playlists. Using that SQL in http://www.mediamonkey.com/wiki/index.php/SDBDatabase it would be easy to retrieve all needed info.

Ludek

2011-01-19 16:42

developer   ~0022458

Last edited: 2011-01-19 16:46

Fixed in build 1345:
http://www.mediamonkey.com/wiki/index.php/ISDBDatabase::GetAutoPlaylistQuery

peke

2011-02-16 23:01

developer   ~0023189

Verified 1349

Wiki Source example added to http://www.mediamonkey.com/wiki/index.php/ISDBDatabase::GetAutoPlaylistQuery

peke

2011-02-16 23:05

developer   ~0023190

Before we close it I wonder if we should add that function work also for Static Playlists?

peke

2011-04-10 22:41

developer   ~0024192

In case ID is Static Playlist result should be something like:
SELECT songs.* FROM Playlists INNER JOIN PlaylistSongs ON PlaylistSongs.IDPlaylist = Playlists.IDPlaylist INNER JOIN Songs ON Songs.ID = PlaylistSongs.IDSong WHERE Playlists.IDPlaylist = <ID Parameter>