fabiospampinato / cliflix

Watch anything instantaneously, just write its name.
MIT License
1.49k stars 65 forks source link

limit search request time to 30 seconds #43

Open hp4k1h5 opened 3 years ago

hp4k1h5 commented 3 years ago

underlying libs (torrent-search-api) aren't setting a timeout for search requests, as described in #22. this pr tries to address this by adding a promise race with a cancel timeout of 30 seconds.

if you'd prefer a config setting for this value, i can add that, but would prefer you decide what to call it and where it lives in the config. thanks