abgx360 Post processing script
Re: abgx360 Post processing script
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
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
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Re: abgx360 Post processing script
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
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
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
-
- Jr. Member
- Posts: 79
- Joined: February 9th, 2009, 5:21 pm
- Location: Tulsa, OK
Re: abgx360 Post processing script
Sweet. Just recompiled and will test later tonight.
Re: abgx360 Post processing script
Updated the script to handle 2-DVD releases.
http://pastebin.com/f22d25267
The logic to be applied to another script is this:
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
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"
How did your testing go with SAB after the re-compile?
-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
-
- Jr. Member
- Posts: 79
- Joined: February 9th, 2009, 5:21 pm
- Location: Tulsa, OK
Re: abgx360 Post processing script
Good news. With your modified version of abgx360 everythings works beautifully, including the original script I posted.
-
- Jr. Member
- Posts: 79
- Joined: February 9th, 2009, 5:21 pm
- Location: Tulsa, OK
Re: abgx360 Post processing script
Hey, markus, just to let you know the new version I posted will handle any number of disks.
Re: abgx360 Post processing script
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
Glad to hear the re-compile is working for you, beats manually running it, that's forsure.
Cheers,
Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
-
- Jr. Member
- Posts: 79
- Joined: February 9th, 2009, 5:21 pm
- Location: Tulsa, OK
Re: abgx360 Post processing script
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.
Re: abgx360 Post processing script
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
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
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
-
- Jr. Member
- Posts: 79
- Joined: February 9th, 2009, 5:21 pm
- Location: Tulsa, OK
Re: abgx360 Post processing script
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.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
Re: abgx360 Post processing script
Ahhh, thanks for clarifying, always learning new commands from these forums, fit makes sense to me now...
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
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
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
-
- Jr. Member
- Posts: 79
- Joined: February 9th, 2009, 5:21 pm
- Location: Tulsa, OK
Re: abgx360 Post processing script
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
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).
-Markus
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
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
-
- Jr. Member
- Posts: 79
- Joined: February 9th, 2009, 5:21 pm
- Location: Tulsa, OK
Re: abgx360 Post processing script
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
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.
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com