summaryrefslogtreecommitdiff
path: root/update.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-16 19:03:57 +0100
committerhorchi <vdr@jwendel.de>2017-03-16 19:03:57 +0100
commit62627661d3fc79cdf0a38fc4708a1e88c7285e7a (patch)
tree36ecb8bda35d998f7d23ee13e87720b9dcb109be /update.c
parent21057136ae42ea59022d87f3e5d83c55c4cca074 (diff)
downloadvdr-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.c12
1 files changed, 10 insertions, 2 deletions
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())