Class: FbMetadbHandle | Spider Monkey Panel

## FbMetadbHandle

`js/foo_spider_monkey_panel.js`, `line 1979`

### Members

#### readonly FileSize :number
`js/foo_spider_monkey_panel.js`, `line 2011`

  -1 if size is unavailable.

#### readonly Length :float
`js/foo_spider_monkey_panel.js`, `line 2017`

#### readonly Path :string
`js/foo_spider_monkey_panel.js`, `line 1988`

  ##### Example

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

#### readonly RawPath :string
`js/foo_spider_monkey_panel.js`, `line 1997`

  ##### Example

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

#### readonly SubSong :number
`js/foo_spider_monkey_panel.js`, `line 2003`

### Methods

#### ClearStats()
`js/foo_spider_monkey_panel.js`, `line 2059`

  See https://theqwertiest.github.io/foo_spider_monkey_panel/docs/guides/playback_stats

#### Compare(handle) → {boolean}
`js/foo_spider_monkey_panel.js`, `line 2078`

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

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `handle` | FbMetadbHandle |

  ##### Returns:

  boolean

  ##### Example

      handle.Compare(handle2);

#### GetFileInfo() → nullable {FbFileInfo}
`js/foo_spider_monkey_panel.js`, `line 2083`

  ##### Returns:

  FbFileInfo - null if file info is not available.

#### RefreshStats()
`js/foo_spider_monkey_panel.js`, `line 2066`

  See https://theqwertiest.github.io/foo_spider_monkey_panel/docs/guides/playback_stats

#### SetFirstPlayed(first_played)
`js/foo_spider_monkey_panel.js`, `line 2038`

  See https://theqwertiest.github.io/foo_spider_monkey_panel/docs/guides/playback_stats

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `first_played` | string | Use "" to clear

#### SetLastPlayed(last_played)
`js/foo_spider_monkey_panel.js`, `line 2045`

  See https://theqwertiest.github.io/foo_spider_monkey_panel/docs/guides/playback_stats

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `last_played` | string | Use "" to clear

#### SetLoved(loved)
`js/foo_spider_monkey_panel.js`, `line 2031`

  See https://theqwertiest.github.io/foo_spider_monkey_panel/docs/guides/playback_stats

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `loved` | number | Use 0 to clear

#### SetPlayCount(playcount)
`js/foo_spider_monkey_panel.js`, `line 2024`

  See https://theqwertiest.github.io/foo_spider_monkey_panel/docs/guides/playback_stats

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `playcount` | number | Use 0 to clear

#### SetRating(rating)
`js/foo_spider_monkey_panel.js`, `line 2052`

  See https://theqwertiest.github.io/foo_spider_monkey_panel/docs/guides/playback_stats

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `rating` | number | Use 0 to clear