GNOME Bugzilla – Bug 725489
Set clip number using GST_TAG_TRACK_NUMBER
Last modified: 2018-05-22 12:54:54 UTC
We are setting the tag using Gst.TAG_TITLE as a work-around for the lack of guints in Javascript. Number.getInteger(1) returns a gint, even if it is converted using >>>0. Regular numbers are passed as doubles.
Created attachment 328852 [details] Random test with unsigned integers in JS
Looks like it was solved in recent GJS versions. Test the attached test written in bare JavaScript: $ [gjs] ./toUnsignedInt.js Results: Gjs-Message: JS LOG: 4294967295 Gjs-Message: JS LOG: 0 Gjs-Message: JS LOG: 1 Gjs-Message: JS LOG: 1000000000 Gjs-Message: JS LOG: number But, on the other hand, have sense enumerate tracks if the user deletes some tracks?
Honestly this bug should be closed since I ended up looking for the last track number and adding one to it. When I opened this I thought it would be better to use the tag setter instead of parsing the name, but Nautilus does it that way so I guess it's fine :) I'm glad they added this to GJS, though! I'll test the tagsetter and see if it works there, then close this. Thanks for the heads-up!
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-sound-recorder/issues/11.