diff options
author | horchi <vdr@jwendel.de> | 2017-03-16 19:03:57 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-16 19:03:57 +0100 |
commit | 62627661d3fc79cdf0a38fc4708a1e88c7285e7a (patch) | |
tree | 36ecb8bda35d998f7d23ee13e87720b9dcb109be /update.c | |
parent | 21057136ae42ea59022d87f3e5d83c55c4cca074 (diff) | |
download | vdr-epg-daemon-62627661d3fc79cdf0a38fc4708a1e88c7285e7a.tar.gz vdr-epg-daemon-62627661d3fc79cdf0a38fc4708a1e88c7285e7a.tar.bz2 |
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
Diffstat (limited to 'update.c')
-rw-r--r-- | update.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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()) |