Build a canonical handle-id from a path + optional subsong index.
path
subsong
''
0
|subsong:N
formatHandleId('C:\\song.flac', 2) === 'C:\\song.flac|subsong:2' formatHandleId('C:\\song.flac') === 'C:\\song.flac' formatHandleId('') === '' Copy
formatHandleId('C:\\song.flac', 2) === 'C:\\song.flac|subsong:2' formatHandleId('C:\\song.flac') === 'C:\\song.flac' formatHandleId('') === ''
Build a canonical handle-id from a
path+ optionalsubsongindex.''for falsy / non-stringpath.0(or non-numeric) collapses to the bare path; only strictly positive sub-song indices receive the|subsong:Ntail.