mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fix reduces time API endpoint Shows takes to return results.
Fix indexer mapper caching. Fix tvrage API garbage collection.
This commit is contained in:
parent
6ddee0257e
commit
7930cbcd80
3 changed files with 18 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
### 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
|
||||
* Remove redundant references from Config/Help & Info
|
||||
|
@ -43,10 +43,11 @@
|
|||
* Fix failing "Search Settings" link that is shown on Config/Search Providers when Torrents Search is not enabled
|
||||
* Fix failing "Providers" link on Config/Search Settings/Episode Search
|
||||
* Change case of labels in General Config/Interface/Timezone
|
||||
* Split enabled from not enabled providers in the Configure Provider drop down on the Providers Options tab
|
||||
* Split enabled from not enabled providers in the Configure Provider drop down on the Providers Options tab
|
||||
* Fix typo on General Config/Misc
|
||||
* 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
|
||||
* Fix reduces time API endpoint Shows takes to return results
|
||||
|
||||
### 0.3.1 (2014-11-19 16:40:00 UTC)
|
||||
|
||||
|
|
|
@ -97,15 +97,12 @@ class ShowContainer(dict):
|
|||
|
||||
#keep only the 100th latest results
|
||||
if time.time() - self._lastgc > 20:
|
||||
tbd = self._stack[:-100]
|
||||
i = 0
|
||||
for o in tbd:
|
||||
for o in self._stack[:-100]:
|
||||
del self[o]
|
||||
del self._stack[i]
|
||||
i += 1
|
||||
|
||||
self._stack = self._stack[-100:]
|
||||
|
||||
_lastgc = time.time()
|
||||
del tbd
|
||||
self._lastgc = time.time()
|
||||
|
||||
super(ShowContainer, self).__setitem__(key, value)
|
||||
|
||||
|
|
|
@ -667,9 +667,9 @@ def get_all_episodes_from_absolute_number(show, absolute_numbers, indexer_id=Non
|
|||
def sanitizeSceneName(name, ezrss=False):
|
||||
"""
|
||||
Takes a show name and returns the "scenified" version of it.
|
||||
|
||||
|
||||
ezrss: If true the scenified version will follow EZRSS's cracksmoker rules as best as possible
|
||||
|
||||
|
||||
Returns: A string containing the scene version of the show name given.
|
||||
"""
|
||||
|
||||
|
@ -900,7 +900,7 @@ def md5_for_file(filename, block_size=2 ** 16):
|
|||
|
||||
def get_lan_ip():
|
||||
"""
|
||||
Simple function to get LAN localhost_ip
|
||||
Simple function to get LAN localhost_ip
|
||||
http://stackoverflow.com/questions/11735821/python-get-localhost-ip
|
||||
"""
|
||||
|
||||
|
@ -970,7 +970,7 @@ By Pedro Jose Pereira Vieito <pvieito@gmail.com> (@pvieito)
|
|||
* The keys should be unique for each device
|
||||
|
||||
To add a new encryption_version:
|
||||
1) Code your new encryption_version
|
||||
1) Code your new encryption_version
|
||||
2) Update the last encryption_version available in webserve.py
|
||||
3) Remember to maintain old encryption versions and key generators for retrocompatibility
|
||||
"""
|
||||
|
@ -1164,8 +1164,13 @@ def mapIndexersToShow(showObj):
|
|||
|
||||
# for each mapped entry
|
||||
for curResult in sqlResults:
|
||||
logger.log(u"Found indexer mapping in cache for show: " + showObj.name, logger.DEBUG)
|
||||
mapped[int(curResult['mindexer'])] = int(curResult['mindexer_id'])
|
||||
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)
|
||||
mapped[int(curResult['mindexer'])] = int(curResult['mindexer_id'])
|
||||
break
|
||||
|
||||
else:
|
||||
sql_l = []
|
||||
for indexer in sickbeard.indexerApi().indexers:
|
||||
|
|
Loading…
Reference in a new issue