alexmercerind/youtube-search-python

Add timeout option

Closed this issue ยท 5 comments

Sometimes I had an issue when getting to the next page search results with the VideosSearch.next() function where it just stays forever like something was wrong with the connection, so maybe it needs a connection timeout parameter

mytja commented

Async search already has a timeout...

Do you use async or sync version?

I use the sync version, the problem is that sometimes it just hangs there forever so I had to implement a multiprocess function to force it to timeout.

mytja commented

Thanks for the comment.
I will add a timeout parameter soon...

mytja commented

Hello, @ricardofunke !
I have added timeout parameter. Let me know if it works ๐Ÿ˜‰

Thanks mytja! I'll start using it and let you know, have a nice day! ๐Ÿ™‚