rvs76 / tvdblib

Automatically exported from code.google.com/p/tvdblib
0 stars 0 forks source link

No progress reports for many API operations #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Simple API methods in the TvdbHandler class - like "SearchSeries" - are not 
asynchronous and do not provide progress events.  They lock up the UI while 
awaiting responses from various TheTvDb WebRequests.

The large Update method obviously reports progress, but the simpler API calls 
do not.

Making ALL the API calls Asynchronous (or adding XxxxxAsync() versions of each 
method) and adding progress/complete events would make this a viable option for 
more fully-featured applications.

I am using the latest (0.8) release of the library, in Windows 7, with Visual 
Studio 2010 and .NET 4 targeted.

If there is a "secret" way to get access to progress events from all the API 
calls, then I could just run the requests in a background worker, and I would 
not need Async versions of the methods.  But I'd need to know how to get access 
to these secret progress events.

Original issue reported on code.google.com by btown...@gmail.com on 22 Nov 2010 at 2:55

GoogleCodeExporter commented 9 years ago
Hi, the problem is that search really only is one http call so it's not really 
viable to report any progress. Updating requires multiple xml files to be 
downloaded so that's why there's a progress report.

If you don't want to stall the ui you can still make the calls in a background 
thread. Making async methods available is a good idea though, but tbh this 
project is pretty much finished for me. 

Ss long as there isn't something new to implement from tvdb side (like the new 
site they talk about since 5 years) there won't be any updates to the library.

Sorry!

Original comment by bgmei...@gmail.com on 27 Dec 2010 at 1:36