For those of you who use this fabulous tool you already know what's up. For those who don't I highly recommend it.
** MODIFYING ABGX360 CODE IS NO LONGER NECESSARY!!! **
Thank the guys over at abgx360 for changing the kbhit() behavior.
Code: Select all
#!/bin/bash
# $1 (source path) is provided by sabnzbd+ upon execution
# ---------- User definable section
OPTIONS="--corrupt --stripcolors --af3 --onlinefirst --fixangle359 --myregion 000000FF --splitvid" # Define abgx360 Parameters
TWITTER_NAME="BrandonG777" #Twitter Username
TWITTER_PASSWORD="****" #Twitter Password
# ---------- User definable section
# Search $1 (source path) for folders including _FAILED_, move contents of $1 to $FAILED_PATH if found and exit script
FAILED_TEST=`find "$1" -type d \( -iname "*_FAILED_*" \) -print`
if [ "$FAILED_TEST" ] ; then
echo "failed download detected, abgx360 aborted, removing bunk image"
rm -Rf "$1"
exit
fi
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
if [ `find "$1" -size +5000000k -regex '.*/.*\.iso' | wc -l` -eq 1 ]
then
find "$1" -regex '.*/.*\.iso' -exec /usr/local/bin/abgx360 $OPTIONS "{}" \; | tee -a "$1"/abgx360.txt
else
echo "Non-Xbox360 ISO Detected, abgx360 Aborted"
fi
# Update Twitter
echo ""
echo "- Tweet, tweet!"
curl --basic --user "$TWITTER_NAME:$TWITTER_PASSWORD" --data-ascii "status=just finished downloading $3" "http://twitter.com/statuses/update.json" >/dev/null 2>&1
000000FF NTSC/U
00FE0000 PAL Europe
I will not offer any support for abgx360 here this is not the place for that. So if you ask you deserve to be banned. Other than that feel free to take it and improve upon it.
mad props to markus101 for helping with this.