1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fix for custom scene numbering, now able to correct numbering or remove it.

Fixed show force-update and mass update to properly force updates on the show including xem numbering.
This commit is contained in:
echel0n 2014-06-05 17:53:34 -07:00
parent 34009bb9b8
commit 4c9da4f448
3 changed files with 3 additions and 6 deletions

View File

@ -206,7 +206,7 @@ def set_scene_numbering(indexer_id, indexer, season=None, episode=None, absolute
myDB = db.DBConnection()
if season and episode and sceneSeason and sceneEpisode:
if season and episode:
myDB.action(
"INSERT OR IGNORE INTO scene_numbering (indexer, indexer_id, season, episode) VALUES (?,?,?,?)",
[indexer, indexer_id, season, episode])
@ -214,7 +214,7 @@ def set_scene_numbering(indexer_id, indexer, season=None, episode=None, absolute
myDB.action(
"UPDATE scene_numbering SET scene_season = ?, scene_episode = ? WHERE indexer = ? and indexer_id = ? and season = ? and episode = ?",
[sceneSeason, sceneEpisode, indexer, indexer_id, season, episode])
elif absolute_number and sceneAbsolute:
elif absolute_number:
myDB.action(
"INSERT OR IGNORE INTO scene_numbering (indexer, indexer_id, absolute_number) VALUES (?,?,?)",
[indexer, indexer_id, absolute_number])

View File

@ -109,7 +109,7 @@ class ShowQueue(generic_queue.GenericQueue):
logger.DEBUG)
return
queueItemObj = QueueItemRefresh(show)
queueItemObj = QueueItemRefresh(show, force=force)
self.add_item(queueItemObj)

View File

@ -2976,9 +2976,6 @@ class Home:
showObj.exceptions = scene_exceptions.get_scene_exceptions(showObj.indexerid)
# Update scene numbering in DB
sickbeard.scene_numbering.xem_refresh(showObj.indexerid, showObj.indexer)
myDB = db.DBConnection()
seasonResults = myDB.select(