Commit e9b99d5b authored by echel0n's avatar echel0n

Only shows in library are cached.

Calls to the API for caching provider results are now done in the background.
Fixed cross-link device issues for version updater.
parent 049deab4
......@@ -6,7 +6,7 @@ ENV TZ 'Canada/Pacific'
# install app
COPY . /opt/sickrage/
RUN apk add --update --no-cache libffi-dev openssl-dev libxml2-dev libxslt-dev linux-headers build-base git tzdata
RUN apk add --update --no-cache libffi-dev openssl-dev libxml2-dev libxslt-dev linux-headers build-base git tzdata unrar
RUN pip install -U pip setuptools
RUN pip install -r /opt/sickrage/requirements.txt
......
# Changelog
- * 7948642 - 2019-02-17: Release v9.4.59
- * ed98996 - 2019-02-20: Only shows in library are cached. Calls to the API for caching provider results are now done in the background. Fixed cross-link device issues for version updater.
- * 13659fe - 2019-02-17: Release v9.4.59
- * 993ca34 - 2019-02-17: Fixed "unable to verify the download url" for Torrent9 provider
- * 01ad8b6 - 2019-02-15: Pre-Release v9.4.59.dev3
- * 3af8cda - 2019-02-15: Removed redundant automatic show refreshes as these happen during automatic show updates
......
......@@ -195,7 +195,7 @@ class TVCache(object):
try:
# parse release name
parse_result = NameParser(validate_show=sickrage.app.config.enable_rss_cache_valid_shows).parse(name)
parse_result = NameParser(validate_show=True).parse(name)
if parse_result.series_name and parse_result.quality != Quality.UNKNOWN:
season = parse_result.season_number if parse_result.season_number else 1
episodes = parse_result.episode_numbers
......@@ -236,7 +236,7 @@ class TVCache(object):
# add to external provider cache database
if sickrage.app.config.enable_api_providers_cache and not self.provider.private:
try:
ProviderCacheAPI().add(dbData)
sickrage.app.event_queue.fire_event(ProviderCacheAPI().add, data=dbData)
except Exception:
pass
......
......@@ -139,7 +139,6 @@ class Config(object):
self.torrent_dir = ""
self.download_propers = False
self.enable_rss_cache = True
self.enable_rss_cache_valid_shows = False
self.torrent_file_to_magnet = False
self.download_unverified_magnet_link = False
self.proper_searcher_interval = ""
......@@ -764,7 +763,6 @@ class Config(object):
'encryption_version': self.encryption_version,
'showupdate_hour': 3,
'enable_rss_cache': True,
'enable_rss_cache_valid_shows': False,
'torrent_file_to_magnet': False,
'download_unverified_magnet_link': False,
'status_default': SKIPPED,
......@@ -1471,7 +1469,6 @@ class Config(object):
self.torrent_method = self.check_setting_str('General', 'torrent_method')
self.download_propers = self.check_setting_bool('General', 'download_propers')
self.enable_rss_cache = self.check_setting_bool('General', 'enable_rss_cache')
self.enable_rss_cache_valid_shows = self.check_setting_bool('General', 'enable_rss_cache_valid_shows')
self.torrent_file_to_magnet = self.check_setting_bool('General', 'torrent_file_to_magnet')
self.download_unverified_magnet_link = self.check_setting_bool('General', 'download_unverified_magnet_link')
self.proper_searcher_interval = self.check_setting_str('General', 'check_propers_interval')
......@@ -1946,7 +1943,6 @@ class Config(object):
'showupdate_stale': int(self.showupdate_stale),
'download_propers': int(self.download_propers),
'enable_rss_cache': int(self.enable_rss_cache),
'enable_rss_cache_valid_shows': int(self.enable_rss_cache_valid_shows),
'torrent_file_to_magnet': int(self.torrent_file_to_magnet),
'download_unverified_magnet_link': int(self.download_unverified_magnet_link),
'randomize_providers': int(self.randomize_providers),
......
......@@ -661,7 +661,7 @@ class SourceUpdateManager(UpdateManager):
if os.path.isfile(new_path):
os.remove(new_path)
os.renames(old_path, new_path)
shutil.move(old_path, new_path)
# install requirements
if not self.install_requirements():
......
......@@ -3986,7 +3986,7 @@ class ConfigSearch(Config):
torrent_label=None, torrent_label_anime=None, torrent_path=None, torrent_verify_cert=None,
torrent_seed_time=None, torrent_paused=None, torrent_high_bandwidth=None,
torrent_rpcurl=None, torrent_auth_type=None, ignore_words=None, require_words=None,
ignored_subs_list=None, enable_rss_cache=None, enable_rss_cache_valid_shows=None,
ignored_subs_list=None, enable_rss_cache=None,
torrent_file_to_magnet=None, download_unverified_magnet_link=None):
results = []
......@@ -4011,7 +4011,6 @@ class ConfigSearch(Config):
sickrage.app.config.ignored_subs_list = ignored_subs_list if ignored_subs_list else ""
sickrage.app.config.randomize_providers = checkbox_to_value(randomize_providers)
sickrage.app.config.enable_rss_cache = checkbox_to_value(enable_rss_cache)
sickrage.app.config.enable_rss_cache_valid_shows = checkbox_to_value(enable_rss_cache_valid_shows)
sickrage.app.config.torrent_file_to_magnet = checkbox_to_value(torrent_file_to_magnet)
sickrage.app.config.download_unverified_magnet_link = checkbox_to_value(download_unverified_magnet_link)
sickrage.app.config.download_propers = checkbox_to_value(download_propers)
......
......@@ -57,18 +57,6 @@
</label>
</div>
</div>
<div class="form-row form-group">
<div class="col-lg-3 col-md-4 col-sm-5">
<label class="component-title">${_('Enable provider RSS cache for valid shows only')}</label>
</div>
<div class="col-lg-9 col-md-8 col-sm-7 component-desc">
<label for="enable_rss_cache_valid_shows">
<input type="checkbox" class="enabler toggle color-primary is-material" name="enable_rss_cache_valid_shows" id="enable_rss_cache_valid_shows"
${('', 'checked')[bool(sickrage.app.config.enable_rss_cache_valid_shows)]}/>
${_('enables/disables caching of shows already added to SiCKRAGE, speeds up searches')}
</label>
</div>
</div>
<div class="form-row form-group">
<div class="col-lg-3 col-md-4 col-sm-5">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment