mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 01:43:37 +00:00
Merge branch 'release/0.4.0' into develop
This commit is contained in:
commit
5f5080d3ab
3 changed files with 17 additions and 14 deletions
|
@ -10,7 +10,7 @@
|
||||||
* Fix adding show from TVRage API
|
* Fix adding show from TVRage API
|
||||||
|
|
||||||
|
|
||||||
### 0.4.0 (2014-11-23 03:27:00 UTC)
|
### 0.4.0 (2014-11-23 08:44:00 UTC)
|
||||||
|
|
||||||
* Change footer stats to not add newlines when copy/pasting from them
|
* Change footer stats to not add newlines when copy/pasting from them
|
||||||
* Remove redundant references from Config/Help & Info
|
* Remove redundant references from Config/Help & Info
|
||||||
|
@ -59,6 +59,7 @@
|
||||||
* Fix typo on General Config/Misc
|
* Fix typo on General Config/Misc
|
||||||
* Fix Add Trending Shows "Not In library" now filters tvrage added shows
|
* Fix Add Trending Shows "Not In library" now filters tvrage added shows
|
||||||
* Add a hover over text "In library" on Add Trending Shows to display tv database show was added from
|
* Add a hover over text "In library" on Add Trending Shows to display tv database show was added from
|
||||||
|
* Fix reduces time API endpoint Shows takes to return results
|
||||||
|
|
||||||
|
|
||||||
### 0.3.1 (2014-11-19 16:40:00 UTC)
|
### 0.3.1 (2014-11-19 16:40:00 UTC)
|
||||||
|
|
|
@ -98,15 +98,12 @@ class ShowContainer(dict):
|
||||||
|
|
||||||
#keep only the 100th latest results
|
#keep only the 100th latest results
|
||||||
if time.time() - self._lastgc > 20:
|
if time.time() - self._lastgc > 20:
|
||||||
tbd = self._stack[:-100]
|
for o in self._stack[:-100]:
|
||||||
i = 0
|
|
||||||
for o in tbd:
|
|
||||||
del self[o]
|
del self[o]
|
||||||
del self._stack[i]
|
|
||||||
i += 1
|
|
||||||
|
|
||||||
_lastgc = time.time()
|
self._stack = self._stack[-100:]
|
||||||
del tbd
|
|
||||||
|
self._lastgc = time.time()
|
||||||
|
|
||||||
super(ShowContainer, self).__setitem__(key, value)
|
super(ShowContainer, self).__setitem__(key, value)
|
||||||
|
|
||||||
|
|
|
@ -1164,8 +1164,13 @@ def mapIndexersToShow(showObj):
|
||||||
|
|
||||||
# for each mapped entry
|
# for each mapped entry
|
||||||
for curResult in sqlResults:
|
for curResult in sqlResults:
|
||||||
|
nlist = [i for i in curResult if None is not i]
|
||||||
|
# Check if its mapped with both tvdb and tvrage.
|
||||||
|
if 4 <= len(nlist):
|
||||||
logger.log(u"Found indexer mapping in cache for show: " + showObj.name, logger.DEBUG)
|
logger.log(u"Found indexer mapping in cache for show: " + showObj.name, logger.DEBUG)
|
||||||
mapped[int(curResult['mindexer'])] = int(curResult['mindexer_id'])
|
mapped[int(curResult['mindexer'])] = int(curResult['mindexer_id'])
|
||||||
|
break
|
||||||
|
|
||||||
else:
|
else:
|
||||||
sql_l = []
|
sql_l = []
|
||||||
for indexer in sickbeard.indexerApi().indexers:
|
for indexer in sickbeard.indexerApi().indexers:
|
||||||
|
|
Loading…
Reference in a new issue