View Issue Details

IDProjectCategoryView StatusLast Update
0020193MMW 5Generalpublic2023-08-20 16:50
Reporterdrakinite Assigned To 
PrioritynormalSeveritytweakReproducibilityN/A
Status assignedResolutionreopened 
Product Version5.1 
Target Version5.2 
Summary0020193: "flags" property included in asJSON / toJSON but is not published
DescriptionReported here: https://www.mediamonkey.com/forum/viewtopic.php?t=104637

The flags property of TSongListData (Track) is included in JSON outputted by asJSON, but it is a "public" property instead of a "published" property, meaning it's not accessible to JS, also meaning that it's not included in the API docs. We may wish to either remove it from asJSON or make it a published property.

FYI: I did a quick filter for keys that are included in asJSON but not accessible in the original track's JS object and found these:
- idAlbum (the original JS object is capitalized differently; namely 'idalbum')
- dateF (What's this for?)
- bitRate (the original JS object is capitalized differently; namely 'bitrate')
- tempString (What's this for?)

(lyrics and comments of course are in the list too, but I believe those two are self explanatory so don't need any changes.)
TagsNo tags attached.
Fixed in build

Relationships

related to 0019790 closedmichal Some MP3s with incorrect info fail to play 

Activities

Ludek

2023-08-16 11:05

developer   ~0072591

image.png (66,239 bytes)   
image.png (66,239 bytes)   

Ludek

2023-08-16 11:07

developer   ~0072592

Last edited: 2023-08-16 11:13

Seeing that Michal added flags in course of fixing 0019790 , I suppose that this kind of info is needed for input plugins.
Similarly the values like tempString might be needed in device plugins.

'dateF' is same as 'date', just in different format, currently read by d_iPhone.dll and d_iPod.dll
'tempString' is also used for transfering value(s) to d_iPhone.dll and d_iPod.dll while syncing

I don't think that these values should be published.. they are rather for internal purposes

drakinite

2023-08-18 05:23

developer   ~0072651

Last edited: 2023-08-18 05:24

Is it worth documenting those properties somewhere? Maybe as a note in the asJSON tsdoc - any other ideas?