Page 2 of 6

Re: abgx360 Post processing script

Posted: February 12th, 2009, 11:35 pm
by markus101
Wow....this is getting annoying....tried quite a few things over the course of the day...most of which involve editing the source code for abgx360...and none of which have worked so far... Still trying out a couple more things and hopefully get a solution...soon?

Has screen been working for you? seems like its the app to do it, but I'm having issues with it running a command after starting...

-Markus

Re: abgx360 Post processing script

Posted: February 13th, 2009, 2:48 am
by markus101
Alrighty...got it working... you need to comment out some code within the C script and then recompile it. Lines 6886-6899 need to be commented out, I've pasted those in the following paste bin: http://pastebin.com/f29d9c6fd

The downside is that you can no longer skip the CRC check via abgx360 - you can use ps/kill to kill the PID though.

Hopefully this option works for you as well.

-Markus

Re: abgx360 Post processing script

Posted: February 13th, 2009, 6:54 pm
by BrandonG777
Sweet. Just recompiled and will test later tonight.

Re: abgx360 Post processing script

Posted: February 16th, 2009, 3:06 pm
by markus101
Updated the script to handle 2-DVD releases.

http://pastebin.com/f22d25267

The logic to be applied to another script is this:

Code: Select all

if [ `find . -size +5000000k -regex '.*/.*\.iso' | wc -l` -eq 2 ]
	then
	FILEZ[1]="$FOLDER_PATH`find . -regex '.*/.*\.iso' | sort | sed -n '1p' | sed 's/^\.//'`"
	FILEZ[2]="$FOLDER_PATH`find . -regex '.*/.*\.iso' | sort | sed -n '2p' | sed 's/^\.//'`"
  abgx360 $OPTIONS "${FILEZ[1]}" > "$FOLDER_PATH/abgx360-1.html"
  abgx360 $OPTIONS "${FILEZ[2]}" > "$FOLDER_PATH/abgx360-2.html"
I did a quick test (via the shell) and had no issues, so it should be good to go, I borrowed this logic from a Movies/TV Post processing script that I adapted to be for Movies only with some personalization for myself.

How did your testing go with SAB after the re-compile?

-Markus

Re: abgx360 Post processing script

Posted: February 17th, 2009, 12:11 am
by BrandonG777
Good news. With your modified version of abgx360 everythings works beautifully, including the original script I posted.  ;D

Re: abgx360 Post processing script

Posted: February 17th, 2009, 12:23 am
by BrandonG777
Hey, markus, just to let you know the new version I posted will handle any number of disks.

Re: abgx360 Post processing script

Posted: February 17th, 2009, 1:59 am
by markus101
Maybe I'm just tired, but where is your version of the script hiding? Although having more than 2 disks is unlikely I'd like to see how you took care of that issue.

Glad to hear the re-compile is working for you, beats manually running it, that's forsure.

Cheers,

Markus

Re: abgx360 Post processing script

Posted: February 17th, 2009, 9:31 am
by BrandonG777
Sorry, I just edited my original post so the noobs coming in don't have to browse through all of our trial and error. I added your size detector and a twitter notifier.  ;D

Re: abgx360 Post processing script

Posted: February 17th, 2009, 10:28 am
by markus101
Thanks....I saw that you edited some, but didn't notice the code (well what was in the code box).

Doesn't that only support a single iso release? You're if statement is looking for a result when find returns only a single ISO result, else it would echo an error message. It looks like even if ABGX does not run, but it fails due to not finding a 360 iso it abort it will update Twitter.

Again maybe I'm just tired/crazy... :(

-Markus

Re: abgx360 Post processing script

Posted: February 17th, 2009, 11:28 am
by BrandonG777
markus101 wrote: Thanks....I saw that you edited some, but didn't notice the code (well what was in the code box).

Doesn't that only support a single iso release? You're if statement is looking for a result when find returns only a single ISO result, else it would echo an error message. It looks like even if ABGX does not run, but it fails due to not finding a 360 iso it abort it will update Twitter.

Again maybe I'm just tired/crazy... :(

-Markus
No, basically the find command will execute the specified command for every matched result. The tee command will then display and append output to abgx360.txt so you can have all the results in the logs of sab and in a text file. As for the twitter update I download other console items (ie. Wii, GameCube, DS and original Xbox) so I like for it to tweet all of those. If the download fails (this is important) it will DELETE the failed download and abort the rest of the script. I know you mentioned you didn't like the behavior of my previous version simply moving it so you probably want to make your own changes there.

Re: abgx360 Post processing script

Posted: February 17th, 2009, 11:48 am
by markus101
Ahhh, thanks for clarifying, always learning new commands from these forums, fit makes sense to me now...  ;D

Downloading other ISO makes sense and the way you handle it makes sense, especially to tweet the results despite it not processing with abgx360. I'm not crazy on the idea of deleting the download on a fail as I can usually resolve those issues fairly easily, but if I was lucky enough to have 25Mbit I'd be on-board, but as such I'm stuck with my lowly 10Mbit.

Again thanks for clarifying, glad to see the automation power of abgx360 with a little Bash scripting.

-Markus

Re: abgx360 Post processing script

Posted: February 17th, 2009, 2:07 pm
by BrandonG777
Yeah, great stuff. I don't consider myself any sort of expert on scripting either. I just dropped my connection down to 12Mbits, my 12 month intro deal on the 25 ran out but I may have to reup on that speed. Anyway, yeah very nice to have all this working. I just wish they would official release abgx360 stop all the nonsense surrounding it. Thanks for all the help dude!

Re: abgx360 Post processing script

Posted: February 23rd, 2009, 1:37 am
by markus101
Came across a few downloads that had a .000 file instead of an iso file, this part if put in the script before all of the other if statements (but after Brandon's if statement to check for a Failed download), will look for a .000 file, rename it to .iso and then delete the matching .dvd file (which will be recreated by abgx360 when it is run).

Code: Select all

if [ `find . -size +5000000k -regex '.*/.*\.000' ` ]
	then
	OLD_000="$FOLDER_PATH`find . -regex '.*/.*\.000' | sort | sed -n '1p' | sed 's/^\.//'`"
	RENAME_ISO="$FOLDER_PATH`find . -regex '.*/.*\.000' | sed 's/000/iso/' | sed -n '1p' | sed 's/^\.//'`"
	mv "$OLD_000" "$RENAME_ISO"
	rm "$FOLDER_PATH"/*.dvd
fi
-Markus

Re: abgx360 Post processing script

Posted: February 23rd, 2009, 10:16 am
by BrandonG777
Hmm... yeah I noticed that a while back haven't seen it on any of the newer stuff though. abgx360 will process those .000 so I don't know if I want to rename them to isos or just process them as is... hmmm...  :-\

Re: abgx360 Post processing script

Posted: February 23rd, 2009, 6:46 pm
by markus101
Not sure it matters, I'd rather see .iso (and I assumed abgx360 wanted that as well), easy enough to have it handle both, but this seemed to be pretty easy to hack code together and make it work. Not sure why someone would even use .000 - when .iso is available.