Commit 398d9d82 authored by echel0n's avatar echel0n
Browse files

Merge branch 'release/9.2.64'

parents 08e6955d 032e9edf
# Changelog
- * 3717a05 - 2017-12-14: Release v9.2.63
- * 49c2bfe - 2017-12-15: Release v9.2.64
- * 92337a7 - 2017-12-15: Added code to cleanup cached provider results with UNKNOWN quality Added code to prevent parsed search results with UNKNOWN quality from being cached
- * 9d35ea1 - 2017-12-14: Release v9.2.63
- * 22c5664 - 2017-12-14: Fixed issue "Unable to contact theTVDB: [0]: Series result returned zero"
- * 20416e1 - 2017-12-13: Release v9.2.62
- * 34d3b93 - 2017-12-13: Added code to name cache to allow adding show names we wish to ignore, helps speed up name parsing and searches
......
......@@ -187,7 +187,7 @@ class TVCache(object):
try:
# parse release name
parse_result = NameParser(validate_show=sickrage.app.config.enable_rss_cache_valid_shows).parse(name)
if parse_result.series_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
......
......@@ -21,6 +21,7 @@ from __future__ import unicode_literals
import os
import sickrage
from sickrage.core.common import Quality
from sickrage.core.databases import srDatabase
from sickrage.core.databases.cache.index import CacheLastUpdateIndex, CacheLastSearchIndex, CacheSceneExceptionsIndex, \
CacheSceneNamesIndex, CacheNetworkTimezonesIndex, CacheSceneExceptionsRefreshIndex, CacheProvidersIndex
......@@ -48,4 +49,12 @@ class CacheDB(srDatabase):
def __init__(self, name='cache'):
super(CacheDB, self).__init__(name)
self.old_db_path = os.path.join(sickrage.app.data_dir, 'cache.db')
\ No newline at end of file
self.old_db_path = os.path.join(sickrage.app.data_dir, 'cache.db')
def cleanup(self):
self.cleanup_provider_cache()
def cleanup_provider_cache(self):
for item in self.all('providers'):
if int(item["quality"]) == Quality.UNKNOWN:
self.delete(item)
\ No newline at end of file
......@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: sickrage 9.2.63\n"
"Project-Id-Version: sickrage 9.2.64\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2017-12-14 03:18-0500\n"
"POT-Creation-Date: 2017-12-15 00:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <[email protected]>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
......
9.2.63
\ No newline at end of file
9.2.64
\ No newline at end of file
Supports Markdown
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