Page 1 of 1

Revise DGIndex for CLI automation

Posted: Fri Jan 15, 2021 10:20 am
by Rocky
Got the following request at Doom9 from our good friend ChaosKing (=> chaoscoder here). Creating this thread for tracking.
Is it possible to add a "skip on error option" when using it via CLI? Or you could add a timeout of the msgbox like in DGIndexNV. Idk if the timeout of the msg only makes sense in combination with -HIDE parameter. The goal is just not to get stuck forever with cli automation on invalid files.
Sure, chaoscoder, no problem. I'll get right on it.

Revise DGIndex for CLI automation

Posted: Mon Jan 18, 2021 9:12 am
by Rocky
Here is a test version that acts like DGIndexNV for CLI errors. Please advise if it meets your needs.

http://rationalqm.us/misc/DGIndex_chaos.rar

Note that support for the old-style CLI syntax is removed.

Note that timeouts occur only if the CLI line contains both the -i and -o options together with the -hide option.

Revise DGIndex for CLI automation

Posted: Mon Jan 18, 2021 12:27 pm
by thechaoscoder
Thx. Works great here. :salute:

Could you also return some error code if opening the file fails. Currently it returns 0

Tested like this in python
return_code = os.system("DGIndex -i 'F:\VTS_01_1.VOB' -o 'F:\test' -hide -exit")

Revise DGIndex for CLI automation

Posted: Mon Jan 18, 2021 1:06 pm
by Rocky
thechaoscoder wrote:
Mon Jan 18, 2021 12:27 pm
Could you also return some error code if opening the file fails. Currently it returns 0
Will do. Thank you for your testing.

Go easy on Sherman. He's just a boy.

Love the avatar! DG's kittie friend Sweet Pea looks just like that. You're definitely in the good books now.

Revise DGIndex for CLI automation

Posted: Tue Jan 19, 2021 8:51 am
by Rocky
Released as build 2.0.0.3.

Revise DGIndex for CLI automation

Posted: Tue Jan 19, 2021 1:05 pm
by thechaoscoder
Works great :bow: