mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-08 02:53:38 +00:00
Merge branch 'origin/dev'
This commit is contained in:
commit
887107284e
2 changed files with 16 additions and 18 deletions
|
@ -104,6 +104,8 @@ def hasFailed(release, size, provider="%"):
|
||||||
is found with any provider.
|
is found with any provider.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
release = prepareFailedName(release)
|
||||||
|
|
||||||
myDB = db.DBConnection("failed.db")
|
myDB = db.DBConnection("failed.db")
|
||||||
sql_results = myDB.select(
|
sql_results = myDB.select(
|
||||||
"SELECT * FROM failed WHERE release=? AND size=? AND provider LIKE ?",
|
"SELECT * FROM failed WHERE release=? AND size=? AND provider LIKE ?",
|
||||||
|
@ -137,9 +139,6 @@ def revertEpisode(epObj):
|
||||||
logger.log(u"Unable to create episode, please set its status manually: " + ex(e),
|
logger.log(u"Unable to create episode, please set its status manually: " + ex(e),
|
||||||
logger.WARNING)
|
logger.WARNING)
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
def markFailed(epObj):
|
def markFailed(epObj):
|
||||||
log_str = u""
|
log_str = u""
|
||||||
|
|
||||||
|
@ -161,7 +160,6 @@ def logSnatch(searchResult):
|
||||||
logDate = datetime.datetime.today().strftime(dateFormat)
|
logDate = datetime.datetime.today().strftime(dateFormat)
|
||||||
release = prepareFailedName(searchResult.name)
|
release = prepareFailedName(searchResult.name)
|
||||||
|
|
||||||
|
|
||||||
providerClass = searchResult.provider
|
providerClass = searchResult.provider
|
||||||
if providerClass is not None:
|
if providerClass is not None:
|
||||||
provider = providerClass.name
|
provider = providerClass.name
|
||||||
|
@ -192,7 +190,6 @@ def trimHistory():
|
||||||
myDB.action("DELETE FROM history WHERE date < " + str(
|
myDB.action("DELETE FROM history WHERE date < " + str(
|
||||||
(datetime.datetime.today() - datetime.timedelta(days=30)).strftime(dateFormat)))
|
(datetime.datetime.today() - datetime.timedelta(days=30)).strftime(dateFormat)))
|
||||||
|
|
||||||
|
|
||||||
def findRelease(epObj):
|
def findRelease(epObj):
|
||||||
"""
|
"""
|
||||||
Find releases in history by show ID and season.
|
Find releases in history by show ID and season.
|
||||||
|
|
|
@ -515,6 +515,7 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua
|
||||||
continue
|
continue
|
||||||
|
|
||||||
result = pickBestResult(foundResults[provider.name][curEp], show)
|
result = pickBestResult(foundResults[provider.name][curEp], show)
|
||||||
|
if result:
|
||||||
finalResults.append(result)
|
finalResults.append(result)
|
||||||
|
|
||||||
logger.log(u"Checking if we should snatch " + result.name, logger.DEBUG)
|
logger.log(u"Checking if we should snatch " + result.name, logger.DEBUG)
|
||||||
|
|
Loading…
Reference in a new issue