From 62627661d3fc79cdf0a38fc4708a1e88c7285e7a Mon Sep 17 00:00:00 2001 From: horchi Date: Thu, 16 Mar 2017 19:03:57 +0100 Subject: 2017-03-16: version 1.1.108 (horchi)\n - change: Improved error message on failed downloads\n - added: sleep 1 second every 50 scraper downloads due to server limit\n\n --- update.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'update.c') diff --git a/update.c b/update.c index 7c6535b..c3db428 100644 --- a/update.c +++ b/update.c @@ -1340,6 +1340,8 @@ void cEpgd::loop() scheduleAutoUpdate(EpgdConfig.checkInitial ? 10 : 0); + scrapNewEvents(); // # debug scarper at Start + while (!doShutDown()) { setState(Es::esStandby); @@ -2307,9 +2309,12 @@ int cEpgd::scrapNewEvents() cSystemNotification::check(); - if (seriesCur%10 == 0) + if (seriesCur % 10 == 0) tell(0, "series episode %d / %d scraped...continuing scraping", seriesCur, seriesTotal); + if (seriesCur % 50 == 0) + sleep(1); + tvdbManager->ProcessSeries(*it); if (doShutDown()) @@ -2351,9 +2356,12 @@ int cEpgd::scrapNewEvents() { movieCur++; - if (movieCur%10 == 0) + if (movieCur % 10 == 0) tell(0, "movie %d / %d scraped...continuing scraping", movieCur, moviesTotal); + if (movieCur % 50 == 0) + sleep(1); + movieDbManager->ProcessMovie(*it); if (doShutDown()) -- cgit v1.2.3