This update was going to occur over the weekend, but google threw me a curve ball. They changed templates at the last second. It would've been foolish to release it as intended because of this as it would've broken immediately.
Code: Select all
# skip self results? google sometimes uses links to it's own
# services within normal google searches. This will skip _any_ google
# links from appearing within google search results. For some
# queries this will omit obvious replies which is normal.
# ------
variable skip_self 1
In a nutshell this is the new option discussed above. This was married to the short_answers option before, now it's divorced and has a small meager apartment on the bad side of town.. But.. There is something you need to understand about this option, besides it being newly single. It will skip any, and by any I mean literally _ANY_ google result that appears. Type !g google, and normally you would expect to see google reference itself as your results... But instead, you merely get the total results found, yet no results shown. And if you've disabled total results, you get nothing at all. As if the bot didn't do anything. This is normal behavior, not a bug. Moving on....
!fight works now. Total results now appear with most results (a few are broken, sure). Also tinkered with the way wiki(pedia/media) tries matching subtag #anchors . This part is still a work-in-progress (read this as it's slow, not as slow as before, but it's still a dog). Also went ahead and fixed some minor inconsistencies, such as youtube giving you total results even if you've disabled them and a few others like this.
Incith:Google v1.9.9u ... Have a fun
Note: The problem with short_answers and looping has been resolved. This was caused by a mistake forgetting to unset variables before continue'ing the while, which carries over those variables into the loop. The parsing in this loop uses unset variables to mean no matches left. With these still set, this then repeats again, and forever, or until your bot pings out. But even then it still continues to eat the cpu, up until the process is terminated. This will never happen again. All variables are now safely reset before this happens with skip_self.