mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-08 11:03:38 +00:00
Change to only refresh scene exception data for shows that need it.
Fix small cosmetic issue to correctly display "full backlog" date.
This commit is contained in:
parent
442b37dcd3
commit
8b2225db8b
3 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
### 0.11.0 (2015-xx-xx xx:xx:xx UTC)
|
### 0.11.0 (2015-xx-xx xx:xx:xx UTC)
|
||||||
|
|
||||||
*
|
* Change to only refresh scene exception data for shows that need it
|
||||||
|
* Fix small cosmetic issue to correctly display "full backlog" date
|
||||||
|
|
||||||
|
|
||||||
### 0.10.0 (2015-08-06 11:05:00 UTC)
|
### 0.10.0 (2015-08-06 11:05:00 UTC)
|
||||||
|
|
|
@ -30,6 +30,7 @@ import sickbeard
|
||||||
from sickbeard import logger
|
from sickbeard import logger
|
||||||
from sickbeard import db
|
from sickbeard import db
|
||||||
from sickbeard.exceptions import ex
|
from sickbeard.exceptions import ex
|
||||||
|
from sickbeard.indexers.indexer_config import INDEXER_TVDB
|
||||||
|
|
||||||
|
|
||||||
def get_scene_numbering(indexer_id, indexer, season, episode, fallback_to_xem=True):
|
def get_scene_numbering(indexer_id, indexer, season, episode, fallback_to_xem=True):
|
||||||
|
@ -460,6 +461,9 @@ def xem_refresh(indexer_id, indexer, force=False):
|
||||||
indexer_id = int(indexer_id)
|
indexer_id = int(indexer_id)
|
||||||
indexer = int(indexer)
|
indexer = int(indexer)
|
||||||
|
|
||||||
|
if not (indexer_id in sickbeard.scene_exceptions.xem_tvdb_ids_list if INDEXER_TVDB == indexer else sickbeard.scene_exceptions.xem_rage_ids_list):
|
||||||
|
return
|
||||||
|
|
||||||
# XEM API URL
|
# XEM API URL
|
||||||
url = 'http://thexem.de/map/all?id=%s&origin=%s&destination=scene' % (
|
url = 'http://thexem.de/map/all?id=%s&origin=%s&destination=scene' % (
|
||||||
indexer_id, sickbeard.indexerApi(indexer).config['xem_origin'])
|
indexer_id, sickbeard.indexerApi(indexer).config['xem_origin'])
|
||||||
|
|
|
@ -126,6 +126,7 @@ class BacklogSearcher:
|
||||||
# or if we only did certain shows
|
# or if we only did certain shows
|
||||||
if fromDate == datetime.date.fromordinal(1) and not which_shows:
|
if fromDate == datetime.date.fromordinal(1) and not which_shows:
|
||||||
self._set_lastBacklog(curDate)
|
self._set_lastBacklog(curDate)
|
||||||
|
self._get_lastBacklog()
|
||||||
|
|
||||||
self.amActive = False
|
self.amActive = False
|
||||||
self._resetPI()
|
self._resetPI()
|
||||||
|
|
Loading…
Reference in a new issue