Documentation/FbMetadbHandle
class

FbMetadbHandle

js/foo_uie_jsplitter.js:3309
propertyreadonly

FileSize

js/foo_uie_jsplitter.js:3339
FileSize: number

-1 if size is unavailable.

propertyreadonly

Length

js/foo_uie_jsplitter.js:3347
Length: float
propertyreadonly

Path

js/foo_uie_jsplitter.js:3314
Path: string

Example

let handle = fb.GetFocusItem();
console.log(handle.Path); // D:\SomeSong.flac
propertyreadonly

RawPath

js/foo_uie_jsplitter.js:3324
RawPath: string

Example

console.log(handle.RawPath); // file://D:\SomeSong.flac
propertyreadonly

SubSong

js/foo_uie_jsplitter.js:3333
SubSong: number
method

ClearStats

js/foo_uie_jsplitter.js:3378
ClearStats()
method

Compare

js/foo_uie_jsplitter.js:3388
Compare(handle)

Compare two FbMetadbHandle instances, pointer only.
If you want to compare them physically, use the FbMetadbHandle#RawPath property.

Parameters

NameTypeDescription
handleFbMetadbHandle

Returns

boolean

Example

handle.Compare(handle2);
method

GetFileInfo

js/foo_uie_jsplitter.js:3400
GetFileInfo(want_full_info)

Parameters

NameTypeDescription
want_full_info = falseoptionalboolean

This enables full retrieval of tags that have been blocked with [b][url=https://www.foobar2000.org/LargeFieldsConfig-v2]LargeFieldsConfig-v2[/url][/b] in the latest foobar2000 2.26 previews.

Returns

?FbFileInfo

null if file info is not available.

method

RefreshStats

js/foo_uie_jsplitter.js:3383
RefreshStats()
method

SetFirstPlayed

js/foo_uie_jsplitter.js:3363
SetFirstPlayed(first_played)

Parameters

NameTypeDescription
first_playedstring

Use "" to clear

method

SetLastPlayed

js/foo_uie_jsplitter.js:3368
SetLastPlayed(last_played)

Parameters

NameTypeDescription
last_playedstring

Use "" to clear

method

SetLoved

js/foo_uie_jsplitter.js:3358
SetLoved(loved)

Parameters

NameTypeDescription
lovednumber

Use 0 to clear

method

SetPlayCount

js/foo_uie_jsplitter.js:3353
SetPlayCount(playcount)

Parameters

NameTypeDescription
playcountnumber

Use 0 to clear

method

SetRating

js/foo_uie_jsplitter.js:3373
SetRating(rating)

Parameters

NameTypeDescription
ratingnumber

Use 0 to clear