try to take over the world!
Hey I'm sorry to answer this in about 1 Year off, but it seems that you didn't get the usecase of this script...
It's just to extract some download links from one specific "distributor"...
AdFly is some kind of redirection service i would say, so its completly fine to not tackle this, as any good download manager will handle such (see JDownloader, PyLoad or stuff like that)
Not work with adfly
example link: http://adf.ly/1nQtqd
please try to test it