Revise DGIndex for CLI automation

Support forum for DGMPGDec
Post Reply
User avatar
Rocky
Posts: 3754
Joined: Fri Sep 06, 2019 12:57 pm

Revise DGIndex for CLI automation

Post 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.
User avatar
Rocky
Posts: 3754
Joined: Fri Sep 06, 2019 12:57 pm

Revise DGIndex for CLI automation

Post 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.
User avatar
thechaoscoder
Posts: 49
Joined: Tue Jul 14, 2020 8:34 am

Revise DGIndex for CLI automation

Post 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")
User avatar
Rocky
Posts: 3754
Joined: Fri Sep 06, 2019 12:57 pm

Revise DGIndex for CLI automation

Post 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.
User avatar
Rocky
Posts: 3754
Joined: Fri Sep 06, 2019 12:57 pm

Revise DGIndex for CLI automation

Post by Rocky »

Released as build 2.0.0.3.
User avatar
thechaoscoder
Posts: 49
Joined: Tue Jul 14, 2020 8:34 am

Revise DGIndex for CLI automation

Post by thechaoscoder »

Works great :bow:
Post Reply