class
FbMetadbHandle
js/foo_uie_jsplitter.js:3309
FileSize: number
-1 if size is unavailable.
Length: float
Path: string
let handle = fb.GetFocusItem();
console.log(handle.Path); // D:\SomeSong.flac
RawPath: string
console.log(handle.RawPath); // file://D:\SomeSong.flac
SubSong: number
ClearStats()
Compare(handle)
Compare two FbMetadbHandle instances, pointer only.
If you want to compare them physically, use the FbMetadbHandle#RawPath property.
| Name | Type | Description |
|---|---|---|
handle | FbMetadbHandle |
booleanhandle.Compare(handle2);
GetFileInfo(want_full_info)
| Name | Type | Description |
|---|---|---|
want_full_info = falseoptional | boolean | 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. |
?FbFileInfo — null if file info is not available.
RefreshStats()
SetFirstPlayed(first_played)
| Name | Type | Description |
|---|---|---|
first_played | string | Use "" to clear |
SetLastPlayed(last_played)
| Name | Type | Description |
|---|---|---|
last_played | string | Use "" to clear |
SetLoved(loved)
| Name | Type | Description |
|---|---|---|
loved | number | Use 0 to clear |
SetPlayCount(playcount)
| Name | Type | Description |
|---|---|---|
playcount | number | Use 0 to clear |
SetRating(rating)
| Name | Type | Description |
|---|---|---|
rating | number | Use 0 to clear |