Alistral: Power tools for Listenbrainz

Small little announcement:

Alistral is now (mostly) officially distributed on nix! It won’t be as fast to come out as the GH release, but I’ll try to bump it fast

It was already available before, but not maintained by me.

1 Like

Release v0.5.14

  • You can now pass a listenbrainz track url as a recording mbid
1 Like

Release v0.6.0

:warning: Breaking release. Check your scripts ! :warning:

This release is full of refactors and small command changes. Feel free to consult the help page to see if anything changed

Major features:

  • Reworked daily command (now slightly faster) to let the user choose the date to generate the report from
  • Improved lookup to be able to select a specific timeframe.

image

Minor features:

  • Added user lookup… That show the listen count of the user. More will come later…
2 Likes

Hello, reading through this thread, Alistral sounds like the sort of thing I would like to use.

Is there a complete beginners guide anywhere? Like the basic steps to get it running - or what I need to learn first.

Cheers!

That would be nice but I’m too lazy for it. I always get distracted in adding more features than making the docs :melting_face:

I only got a partial documentation here but the help reference is complete and autogenerated (thanks clap markdown). The app is a cli, so you only need to download the executable and use the cli

If you need specific help you can always message me here, make an issue, or the IRC/Matrix/Discord LB chat. That’ll motivate me to get up and write docs lol.

2 Likes

Thanks! OK, I need to get au fait with command line - will message you if I have any specific questions once I’ve done that.

If I get it to work, maybe I can write an idiot’s guide…

3 Likes
1 Like

Feel free! My docs are just markdown so it’s easy to add some

1 Like

I got a similar RUST_BACKTRACE=1 error - how did you fix this please?

My error:

PS C:\Users\c2103\Documents> & “C:\Users\c2103\Documents\alistral-windows.exe”
alistral-windows.exe : e[31mThe application panicked (crashed).e[0m
At line:1 char:1

  • & “C:\Users\c2103\Documents\alistral-windows.exe”
  •   + CategoryInfo          : NotSpecified: (e[31mThe applic... (crashed).e[0m:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

Message: e[36mcalled Result::unwrap() on an Err value: PoolInitError { source: MigrationError { backtrace: Backtrace [{ fn:
“BaseThreadInitThunk” }, { fn: “RtlUserThreadStart” }], source: VersionMismatch(1) } }e[0m
Location: e[35malistral_cli\src\models\client\mb_db.rse[0m:e[35m33e[0m
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

This error happens when Alistral expect the database to be at version X, but is actually Y, with Y being later than X. Which is… odd. I haven’t made a schema change in a long while.

Are you using v0.6.6? If so, try deleting the C:\Users\{user}\AppData\Local\Alistral folder

1 Like

I tried deleting that folder, deleting the .exe and redownloading it.
I no longer get the error message, but I am still unable to open the .exe (nothing happens)
I’ve pasted my commands below if that helps (it is pointing to the correct location). The last line is what I get after I try to open it…

PS C:\Users\c2103> cd C:\Users\c2103\Documents
PS C:\Users\c2103\Documents> & "C:\Users\c2103\Documents\alistral-windows.exe"
PS C:\Users\c2103\Documents>