Changelog
Windows builds: free code signing provided by SignPath.io, certificate by SignPath Foundation (code signing policy).
FYI:
Lokal is 100% local; the library, history, anything in database, or any info that is used for API's such as yt-dlp, LRCLIB, is NOT seen by us.
What's Changed
-
Music videos for old songs, lookup logging, and service logos for addons without an icon (#305)
Details
1. Music videos: look old songs up again after matching improves (fa4894a)
Problem. Library songs that had been played before showed no music video (for example "SPIN" by Kroi). The same song searched online and played from a source found its video right away.
Cause. A lookup that finds nothing is remembered for 3 days, under a cache key that didn't change when matching improved in 6.6.1. So songs checked before then kept their old "no video" result, while a newly searched song got a fresh lookup with the current matching.
Changes (
electron/online/musicVideo.js):- Old misses are retried. A remembered "no video" now records the matcher version that made it (
matcher: MATCHER, currently 4). A miss without it, or from an older matcher, is looked up again. - Found videos are kept as they are, so the Videos page doesn't empty.
- Future matching changes: bumping
MATCHERmakes every library song get a fresh lookup the next time it's played. - Logging: each lookup writes to the app log (
electron-log, passed in fromelectron/ipc/online.js):- which candidates it checked;
- why each one was skipped: picture doesn't move, audio doesn't line up, or couldn't compare (with the error);
- the result, or that a remembered result was used and its date.
2. Addons without an icon get their service's logo (9c37db1)
What you see. When an addon has no icon of its own and its name, id or host names a service, it shows that service's logo in its brand colour on a clear background. It's the same style as the YouTube, SoundCloud and Soulseek marks in search. Any other addon keeps the generic icon.
Services covered:
- Simple Icons logos (CC0): Deezer, Tidal, Spotify, Apple Music, YouTube Music, YouTube, SoundCloud, Bandcamp, Napster, Beatport, Audiomack.
- Lucide icons (ISC): Qobuz and Amazon Music aren't in Simple Icons, so they get a disc and a music note, in their colours.
How it works.
electron/online/addonBrand.jsreturns an SVG data URL. It's used where both kinds of addon build theiricon:- manifest addons, in
publicView(electron/online/addons.js); - SpotiFLAC packages, in
electron/spotiflac/packages.js.
So every place that shows addon icons picks it up with no UI changes: Settings → Addons, search, playback sources, and the lossless dialogs.
Testing
scripts/music-video.test.mjs:- an older matcher's "no video" is looked up again, and the new result is remembered;
- a found video is used from the cache without searching;
- the log lines say what happened.
scripts/addon-brand.test.mjs:- matching by name, id and host;
- logo and colour, with no tile;
- unknown names get
null; - an installed addon without an icon is listed with the logo, and its own icon is kept when it has one.
- Checked in Electron: Settings → Addons shows the Qobuz addon (qobuz-addon.vercel.app) with its icon.
- Live check of "SPIN" by Kroi: search finds the official video (
smFp0sksH84, 306 s, Kroi's channel), and it passes the title, artist and length filter. Downloads from YouTube are blocked in this container, so the audio check on that video couldn't be run here. node --test scripts/*.test.mjs: 583 pass. The 2 failures are the known container-only ones ("Clear Cache…" and "a package download crosses the real host…").npx vite buildpasses.
Summary by CodeRabbit
- New Features
- Music videos now appear against a blurred, softly glowing backdrop that adapts to the video.
- Add-ons for supported music services can now display branded icons when no suitable icon is provided.
- Bug Fixes
- Older cached “no video” results are searched again, while valid cached video matches continue to be reused.
- Release
- Updated the displayed and package version to 6.6.2.
- Old misses are retried. A remembered "no video" now records the matcher version that made it (
-
Videos: animated previews for videos that aren't downloaded (#306)
Details
Pointing at a video card that isn't downloaded now plays YouTube's own animated preview (a few seconds, no sound, ~100 KB), like downloaded videos already preview their file. One YouTube search per video, as a current web client (it only sends animated previews then), never yt-dlp and never the video itself; one at a time, after a 400 ms hover, and remembered (six hours, "none" for a day). A video without one keeps its still thumbnail; a preview whose link stopped working is skipped and asked for again the next time.
Full Changelog: v6.6.2...v6.6.3
Setup
See README.md for full setup instructions.
macOS: this build is ad-hoc signed, not notarized (no Developer ID certificate is configured). The first time, right-click Lokal in Applications and choose Open, or run xattr -dr com.apple.quarantine /Applications/Lokal.app.
Binary Checksums (SHA-256)
Lokal-6.6.3-arm64-mac.zip:
[6EFDF36C6143CF044776B32A4A3081D70EDB6753B7722B6BF045FFC6F9CB2602]
Lokal-6.6.3-arm64-mac.zip.blockmap:[0AFED15C75E8115A82DB640912D1289CA95A7E33593FE40562762B86572979D5]
Lokal-6.6.3-arm64.AppImage:[A4DA7FBD36993435368DDC0BA5FA19D078AACA547897C95E3A8240D909752D09]
Lokal-6.6.3-arm64.dmg:[0DCDC0CAE0F7211A1116A71E18F3ED5A779F13CC028F7E595A8D1A7182AC36FE]
Lokal-6.6.3-arm64.dmg.blockmap:[2F74AE2AC2C5CCAC33258201A1312A2C53A7B50763F899FA8789ADD9033B5C72]
Lokal-6.6.3.AppImage:[1ECF0832CE7EBF848D911B2D5B423103D9EBD5BC6CAFAE9B70262D1D3BF16476]
Lokal-6.6.3.exe:[6E8134C2128B17A5BFC528C0A48651487E311F8D13DFE98BF478D623BCBA4B05]
Lokal-Setup-6.6.3.exe:[FAE41DEC6B7C37E54C10764C934B356E148A2F7CF37A39C64A2172AAA8B8D40C]
Lokal-Setup-6.6.3.exe.blockmap:[3AA86E7BAB2E9F4B58DF8D78A3DF62002BB9957C6ACEFFF8A0A40439B5717E87]
builder-debug.yml:[965B1D0BE78FA42F4528ECB34FB1518DD2353DAB6F11AF2DBF436CD575BCB99B]
latest-linux-arm64.yml:[623F0244C68D0839ABAA180660BC0E78030CBFC2ABBF4EEE0812B0E17D9C5216]
latest-linux.yml:[1A83D0B71C69276C2439784E27568C4258AAD72613E1A499AA3F19AF7E594947]
latest-mac.yml:[6388130CDBE42DC427B8564E1C1B85A58E8CA636AD99372A3972395CA1B8BD0E]
latest.yml:[0B8A29FE55B2FFCB6494287CBFBD49127B0D3118FDEBACEC2BB71F3D14FD0F0C]
lokal-music_6.6.3_amd64.deb:[E400F92B9737DFB621E0DC82F1824BEB8001FADD7AA711CC26F4ADB55004FEE6]
lokal-music_6.6.3_arm64.deb:[F545BE148D4E216CB42FE02D42EC32922E138E10AA35D6B4646B66C7F4AD3B60]
