mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
e34f191ae0
2 changed files with 11 additions and 7 deletions
|
@ -1,4 +1,9 @@
|
||||||
### 0.13.0 (2017-12-06 12:40:00 UTC)
|
### 0.13.1 (2017-12-07 15:30:00 UTC)
|
||||||
|
|
||||||
|
* Fix wanted episodes
|
||||||
|
|
||||||
|
|
||||||
|
### 0.13.0 (2017-12-06 12:40:00 UTC)
|
||||||
|
|
||||||
* Change don't fetch caps for disabled nzb providers
|
* Change don't fetch caps for disabled nzb providers
|
||||||
* Change recent search to use centralised title and URL parser for newznab
|
* Change recent search to use centralised title and URL parser for newznab
|
||||||
|
|
|
@ -1473,19 +1473,19 @@ class TVShow(object):
|
||||||
logger.log('Unable to find a matching episode in database, ignoring found episode', logger.DEBUG)
|
logger.log('Unable to find a matching episode in database, ignoring found episode', logger.DEBUG)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
epStatus = Quality.splitCompositeStatus(int(sqlResults[0]['status']))[0]
|
curStatus, curQuality = Quality.splitCompositeStatus(int(sqlResults[0]['status']))
|
||||||
epStatus_text = statusStrings[epStatus]
|
epStatus_text = statusStrings[curStatus]
|
||||||
|
|
||||||
logger.log('Existing episode status: %s (%s)' % (statusStrings[epStatus], epStatus_text), logger.DEBUG)
|
logger.log('Existing episode status: %s (%s)' % (statusStrings[curStatus], epStatus_text), logger.DEBUG)
|
||||||
|
|
||||||
# if we know we don't want it then just say no
|
# if we know we don't want it then just say no
|
||||||
if epStatus in (SKIPPED, IGNORED, ARCHIVED) and not manualSearch:
|
if curStatus in (SKIPPED, IGNORED, ARCHIVED) and not manualSearch:
|
||||||
logger.log('Existing episode status is skipped/ignored/archived, ignoring found episode', logger.DEBUG)
|
logger.log('Existing episode status is skipped/ignored/archived, ignoring found episode', logger.DEBUG)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# if it's one of these then we want it as long as it's in our allowed initial qualities
|
# if it's one of these then we want it as long as it's in our allowed initial qualities
|
||||||
if quality in allQualities:
|
if quality in allQualities:
|
||||||
if epStatus in (WANTED, UNAIRED, SKIPPED, FAILED):
|
if curStatus in (WANTED, UNAIRED, SKIPPED, FAILED):
|
||||||
logger.log('Existing episode status is wanted/unaired/skipped/failed, getting found episode', logger.DEBUG)
|
logger.log('Existing episode status is wanted/unaired/skipped/failed, getting found episode', logger.DEBUG)
|
||||||
return True
|
return True
|
||||||
elif manualSearch:
|
elif manualSearch:
|
||||||
|
@ -1497,7 +1497,6 @@ class TVShow(object):
|
||||||
logger.log('Quality is on wanted list, need to check if it\'s better than existing quality',
|
logger.log('Quality is on wanted list, need to check if it\'s better than existing quality',
|
||||||
logger.DEBUG)
|
logger.DEBUG)
|
||||||
|
|
||||||
curStatus, curQuality = Quality.splitCompositeStatus(epStatus)
|
|
||||||
downloadedStatusList = SNATCHED_ANY + [DOWNLOADED]
|
downloadedStatusList = SNATCHED_ANY + [DOWNLOADED]
|
||||||
# special case: already downloaded quality is not in any of the wanted Qualities
|
# special case: already downloaded quality is not in any of the wanted Qualities
|
||||||
if curStatus in downloadedStatusList and curQuality not in allQualities:
|
if curStatus in downloadedStatusList and curQuality not in allQualities:
|
||||||
|
|
Loading…
Reference in a new issue