Documentation/FbMetadbHandle
classWORKERCLONEABLE

FbMetadbHandle

jsdoc/objects/foobar2000.js:57
propertyWORKERreadonly

FileSize

jsdoc/objects/foobar2000.js:92
FileSize: number

-1 if size is unavailable.

propertyWORKERreadonly

Length

jsdoc/objects/foobar2000.js:101
Length: float
propertyWORKERreadonly

Path

jsdoc/objects/foobar2000.js:64
Path: string

Example

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

RawPath

jsdoc/objects/foobar2000.js:75
RawPath: string

Example

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

SubSong

jsdoc/objects/foobar2000.js:85
SubSong: number
methodWORKER

ClearStats

jsdoc/objects/foobar2000.js:138
ClearStats()
methodWORKER

Compare

jsdoc/objects/foobar2000.js:151
Compare(handle)

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

Parameters

NameTypeDescription
handleFbMetadbHandle

Returns

boolean

Example

handle.Compare(handle2);
methodWORKER

GetFileInfo

jsdoc/objects/foobar2000.js:164
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.

methodWORKERMAIN THREAD

RefreshStats

jsdoc/objects/foobar2000.js:144
RefreshStats()
methodWORKER

SetFirstPlayed

jsdoc/objects/foobar2000.js:120
SetFirstPlayed(first_played)

Parameters

NameTypeDescription
first_playedstring

Use "" to clear

methodWORKER

SetLastPlayed

jsdoc/objects/foobar2000.js:126
SetLastPlayed(last_played)

Parameters

NameTypeDescription
last_playedstring

Use "" to clear

methodWORKER

SetLoved

jsdoc/objects/foobar2000.js:114
SetLoved(loved)

Parameters

NameTypeDescription
lovednumber

Use 0 to clear

methodWORKER

SetPlaycount

jsdoc/objects/foobar2000.js:108
SetPlaycount(playcount)

Parameters

NameTypeDescription
playcountnumber

Use 0 to clear

methodWORKER

SetRating

jsdoc/objects/foobar2000.js:132
SetRating(rating)

Parameters

NameTypeDescription
ratingnumber

Use 0 to clear