playlists.getByIDAsync return value [#20193]

To discuss development of addons / skins / customization of MediaMonkey.

Moderators: jiri, drakinite, Addon Administrators

Barry4679
Posts: 2446
Joined: Fri Sep 11, 2009 8:07 am
Location: Australia
Contact:

playlists.getByIDAsync return value [#20193]

Post by Barry4679 »

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); }}); }});
Want a dark skin for MM5? This is the one that works best for me .. elegant, compact & clear.
drakinite
Posts: 971
Joined: Tue May 12, 2020 10:06 am
Contact:

Re: playlists.getByIDAsync return value

Post by drakinite »

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
Image
Student electrical-computer engineer, web programmer, part-time MediaMonkey developer, full-time MediaMonkey enthusiast
I uploaded many addons to MM's addon page, but not all of those were created by me. "By drakinite, Submitted by drakinite" means I made it on my own time. "By Ventis Media, Inc., Submitted by drakinite" means it may have been made by me or another MediaMonkey developer, so instead of crediting/thanking me, please thank the team. You can still ask me for support on any of our addons.
Post Reply