SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Never Open Report In Browser Option

I’m very new to SongKong and am working on an automated workflow using the CLI and a Powershell script to run Fix Songs on a schedule. My goal is to scan my library folders for any albums that have been added/changed/updated since the last scan and then only process those albums to avoid having to go through a pile of unnecessary matching every day.

The only hiccup I’m running into is that every time it processes an album, it opens the Report in a browser window. If I happen to have a ton of changes found, then it could be opening 100+ browser windows. I see in other posts that there should be a feature for “After SongKong has processing songs” that should be on the Save tab of the Fix Songs Profile. Unfortunately, that doesn’t seem to exist, neither in the standard SongKong.exe gui or when running in Remote Mode.

Has this feature been removed / hard-coded?

Ok, so for the Gui we actually stopped it from opening the report automatically ever, so therefore we removed the option because it was unnecessary.

However, I didn’t consider the cli when I did this, and in fact it was quite recently that I had the cli opening a report if not headless. I dont know if possible to run cli in some sort of headless mode then it won’t open in browser.

Also, regarding your sctipt. Are you aware of the Monitor Watch Folder task. This will monitor a folder for newly added folders and process them as they are added, would that work for you?

I see, that makes sense! The way I’m running my script is first shutting down any running instances and then using the cli to run:
songkongdebug -m -p “profile name” “directory”

Whether running that via batch file, powershell script, or directly in a powershell terminal it always pops open the report in a browser window.

I had considered the Monitor Watch Folder feature, which would be perfect…but I’ve ended up needing to do a two-pass scan in order to get my Genres & Grouping the way I want them. The reason for the two-passes is because I consider “metal” to be a top-level Genre, but it’s not in the standard Discogs list…it’s a sub-genre of Rock. So, I have created (2) different Profiles (Pass1 and Pass2). Pass 1 has all of the standard metadata tagging & artist/album images, etc and the Genre settings use Discogs Style and the Genres Grey List. I have the Grey List set up such that anything with “metal” in it gets mapped to “metal”. So, when it runs, it looks at all of the Discogs Styles and if any of them have “metal” in it, the Genre becomes Metal. The Pass1 Grouping settings are “never replace”. Then, on the Pass2 Profile, I’ve trimmed it down so that the only thing it’s doing is Genres, where I have Genre set to “Never Replace” and I have Grouping set to Discogs Style and I unchecked the Genres Grey List. This way, the first pass gets my top-level Genre tags set up and the 2nd pass gets the actual various Styles found in Discogs entered directly into Grouping without the Grey List mapping.

If there was a way to have (2) “Use the Genres Grey List” checkboxes (one for Genres and one for Grouping) to where you could apply it independently between Genre & Grouping that would be amazing…then I could do everything I’m gunning for in a single pass. But I also realize that I’m probably a fringe case!

I understand the issue about Use the Genres Grey List checkbox, I will consider it but is quite niche

Okay to stop report opening this worked for me from DOS window

set JAVA_TOOL_OPTIONS=-Djava.awt.headless=true
songkongdebug -m D:\MusicTest

Or if using Powershell

$env:JAVA_TOOL_OPTIONS = "-Djava.awt.headless=true"
.\songkongdebug.exe -m D:\MusicTest