playlists.getByIDAsync return value [#20193]

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: playlists.getByIDAsync return value [#20193]

Re: playlists.getByIDAsync return value

by drakinite » Tue Aug 15, 2023 12:48 am

Thanks for finding this. It looks like the flags attribute is a non-published property of a Track object, i.e., it's a property accessible to MM's Delphi code but not JS. Tracked as https://www.ventismedia.com/mantis/view.php?id=20193

playlists.getByIDAsync return value [#20193]

by Barry4679 » Wed Jul 19, 2023 3:08 am

It looks to me that the return value from this function now includes a "flags" attribute that wasn't there before.
What are the flag values and purposes?

ie. app.playlists.getByIDAsync({mm_pl_id}).then(function(playlist) {{ if (!playlist) runJSCode_callback('Could not find playlist'); else playlist.getTracklist().whenLoaded().then(function (list) {{ runJSCode_callback(list.asJSON); }}); }});

Top