@uimaxbai/am-lyrics 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/AmLyrics.ts +2 -1
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Web Component for Apple Music lyrics. Follows open-wc recommendations.",
4
4
  "license": "MPL-2.0",
5
5
  "author": "uimaxbai",
6
- "version": "1.0.0",
6
+ "version": "1.0.1",
7
7
  "type": "module",
8
8
  "main": "dist/src/index.js",
9
9
  "module": "dist/src/index.js",
package/src/AmLyrics.ts CHANGED
@@ -2,7 +2,7 @@ import { html, css, LitElement } from 'lit';
2
2
  import { property, state, query } from 'lit/decorators.js';
3
3
  import { GoogleService } from './GoogleService.js';
4
4
 
5
- const VERSION = '1.0.0';
5
+ const VERSION = '1.0.1';
6
6
  const INSTRUMENTAL_THRESHOLD_MS = 7000; // Show dots for gaps >= 7s
7
7
 
8
8
  const KPOE_SERVERS = [
@@ -3585,6 +3585,7 @@ export class AmLyrics extends LitElement {
3585
3585
  !hasHyphen &&
3586
3586
  trimmedText.length <= 7 &&
3587
3587
  trimmedText.length > 0 &&
3588
+ durationMs >= 700 &&
3588
3589
  durationMs >= trimmedText.length * 300;
3589
3590
 
3590
3591
  // Optional romanization per syllable