notatallshaw / arandabot

A youtube to reddit bot based on youtube API v3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add timeouts to ytvideos class methods

notatallshaw opened this issue · comments

I think sometimes the Google API classes just stop responding as apposed to throwing an exception. The idea to this would to be put the calls in to a separate thread / subprocess and kill the thread after a set amount of time if nothing happens.

Maybe measuring "nothing happens" could be via a queue which is populated by the loops in the method.