grompe / magnet2

Python XMPP MUC entertainment, informational and administration bot
9 stars 2 forks source link

Google and Youtube plugin no longer works #6

Open l0st1337 opened 8 years ago

l0st1337 commented 8 years ago

hi, something is wrong with google/yt plug in

(17:27:07) Czarli: !g test (17:27:07) XXXXX@rooms.XXXXXt: An error occured.

its the same for image, calc and other commands from google plugin when someone posts yt link this happens

(17:26:18) XX: https://www.youtube.com/watch?v=LINK (17:26:19) AlfaBot: XX's YouTube link: ??? [by ???, -1:59, -1 views]

only translate command works,

on server that i use there are 2 magnet bots running separetly and both stoped working at the same time so this is not issue on my side (i hope so)

:)

grompe commented 8 years ago

Google has removed their Search API. Need to investigate if their proposed replacement "Custom Search" is any good.

Will see about Youtube.

l0st1337 commented 8 years ago

custom search works, if someone else needs patch, here it is: https://github.com/hyperreal/GanjaBot/commit/e20d47af839d298bacc268164189aeef89e2fc61 you need to generate and add google api id and custom search id to config and limiting access to google command is a good idea since there is a limit of 100 queries per day in free version