Skip to content

Commit

Permalink
do not scan for interval=0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Meyer committed Jan 2, 2015
1 parent d7a2c6a commit a26c368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mediamenu.py
Expand Up @@ -91,7 +91,7 @@ def _check_for_rescan(self, filename, interval):
# directory not known, force scan
log.info('initial scan %s' % filename)
kaa.beacon.scan(filename)
elif (time.time() - data.get('last_crawl', 0)) / 3600 > interval:
elif interval and (time.time() - data.get('last_crawl', 0)) / 3600 > interval:
# FIXME: if Freevo is running longer than 'interval'
# hours we need to re-trigger the scan here.
log.info('scan %s' % filename)
Expand Down

0 comments on commit a26c368

Please sign in to comment.