Browse Source

Only read cache submissions if enabled

master
Macoy Madson 1 month ago
parent
commit
d25e7f861b
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      downloaders/redditUserImageScraper.py

+ 6
- 3
downloaders/redditUserImageScraper.py View File

@ -102,9 +102,12 @@ def getSubmissionsToSave():
if settings.settings['Use_cached_submissions']:
logger.log('Using cached submissions')
submissions += submission.readCacheSubmissions(settings.settings['Reddit_cache_file'])
submissions += submission.readCacheSubmissions(settings.settings['Tumblr_cache_file'])
submissions += submission.readCacheSubmissions(settings.settings['Pixiv_cache_file'])
if settings.settings['Reddit_Enabled']:
submissions += submission.readCacheSubmissions(settings.settings['Reddit_cache_file'])
if settings.settings['Tumblr_Enabled']:
submissions += submission.readCacheSubmissions(settings.settings['Tumblr_cache_file'])
if settings.settings['Pixiv_Enabled']:
submissions += submission.readCacheSubmissions(settings.settings['Pixiv_cache_file'])
else:
if settings.hasRedditSettings():
redditSubmissions, redditComments, earlyOutPoints = redditScraper.getRedditUserLikedSavedSubmissions(


Loading…
Cancel
Save