mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -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:
parent
34009bb9b8
commit
4c9da4f448
@ -206,7 +206,7 @@ def set_scene_numbering(indexer_id, indexer, season=None, episode=None, absolute
|
|||||||
|
|
||||||
myDB = db.DBConnection()
|
myDB = db.DBConnection()
|
||||||
|
|
||||||
if season and episode and sceneSeason and sceneEpisode:
|
if season and episode:
|
||||||
myDB.action(
|
myDB.action(
|
||||||
"INSERT OR IGNORE INTO scene_numbering (indexer, indexer_id, season, episode) VALUES (?,?,?,?)",
|
"INSERT OR IGNORE INTO scene_numbering (indexer, indexer_id, season, episode) VALUES (?,?,?,?)",
|
||||||
[indexer, indexer_id, season, episode])
|
[indexer, indexer_id, season, episode])
|
||||||
@ -214,7 +214,7 @@ def set_scene_numbering(indexer_id, indexer, season=None, episode=None, absolute
|
|||||||
myDB.action(
|
myDB.action(
|
||||||
"UPDATE scene_numbering SET scene_season = ?, scene_episode = ? WHERE indexer = ? and indexer_id = ? and season = ? and episode = ?",
|
"UPDATE scene_numbering SET scene_season = ?, scene_episode = ? WHERE indexer = ? and indexer_id = ? and season = ? and episode = ?",
|
||||||
[sceneSeason, sceneEpisode, indexer, indexer_id, season, episode])
|
[sceneSeason, sceneEpisode, indexer, indexer_id, season, episode])
|
||||||
elif absolute_number and sceneAbsolute:
|
elif absolute_number:
|
||||||
myDB.action(
|
myDB.action(
|
||||||
"INSERT OR IGNORE INTO scene_numbering (indexer, indexer_id, absolute_number) VALUES (?,?,?)",
|
"INSERT OR IGNORE INTO scene_numbering (indexer, indexer_id, absolute_number) VALUES (?,?,?)",
|
||||||
[indexer, indexer_id, absolute_number])
|
[indexer, indexer_id, absolute_number])
|
||||||
|
@ -109,7 +109,7 @@ class ShowQueue(generic_queue.GenericQueue):
|
|||||||
logger.DEBUG)
|
logger.DEBUG)
|
||||||
return
|
return
|
||||||
|
|
||||||
queueItemObj = QueueItemRefresh(show)
|
queueItemObj = QueueItemRefresh(show, force=force)
|
||||||
|
|
||||||
self.add_item(queueItemObj)
|
self.add_item(queueItemObj)
|
||||||
|
|
||||||
|
@ -2976,9 +2976,6 @@ class Home:
|
|||||||
|
|
||||||
showObj.exceptions = scene_exceptions.get_scene_exceptions(showObj.indexerid)
|
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()
|
myDB = db.DBConnection()
|
||||||
|
|
||||||
seasonResults = myDB.select(
|
seasonResults = myDB.select(
|
||||||
|
Loading…
Reference in New Issue
Block a user