The script is broken since the last update (not from me) and it's still broken. With the last update there was a test from the normal site added to the api version which will never be found and therefor the RIGHTPAGEFOUND doesn't work at all as it should.
Simply load the last version from my thread and everything will work again.
I have add the ability of grab directlinks automatically in the script without API and I have just copy and paste in the other script without test it. My mistake.
Sorry JDommi for all this delay, I haven't work on this yet.