mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Merge pull request #480 from JackDandy/feature/ChangeXemRefresh
Change to only refresh scene exception data for shows that need it.
This commit is contained in:
commit
5dbe36eb74
3 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
### 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)
|
||||
|
|
|
@ -30,6 +30,7 @@ import sickbeard
|
|||
from sickbeard import logger
|
||||
from sickbeard import db
|
||||
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):
|
||||
|
@ -460,6 +461,9 @@ def xem_refresh(indexer_id, indexer, force=False):
|
|||
indexer_id = int(indexer_id)
|
||||
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
|
||||
url = 'http://thexem.de/map/all?id=%s&origin=%s&destination=scene' % (
|
||||
indexer_id, sickbeard.indexerApi(indexer).config['xem_origin'])
|
||||
|
|
|
@ -126,6 +126,7 @@ class BacklogSearcher:
|
|||
# or if we only did certain shows
|
||||
if fromDate == datetime.date.fromordinal(1) and not which_shows:
|
||||
self._set_lastBacklog(curDate)
|
||||
self._get_lastBacklog()
|
||||
|
||||
self.amActive = False
|
||||
self._resetPI()
|
||||
|
|
Loading…
Reference in a new issue