Merge pull request #160 from adam111316/feature/FixBlackWhiteInit

Fix black and white list initialization on new show creation
This commit is contained in:
adam111316 2015-01-23 07:11:28 +08:00
commit 94724779a3
2 changed files with 5 additions and 0 deletions

View file

@ -14,6 +14,7 @@
* Change adjust menu delay and hover styling
* Fix provider list color
* Add handling of exceptional case with missing network name (NoneType) in Episode View
* Fix black and white list initialization on new show creation
[develop changelog]

View file

@ -29,6 +29,7 @@ from sickbeard import exceptions, logger, ui, db
from sickbeard import generic_queue
from sickbeard import name_cache
from sickbeard.exceptions import ex
from sickbeard.blackandwhitelist import BlackAndWhiteList
class ShowQueue(generic_queue.GenericQueue):
@ -293,6 +294,9 @@ class QueueItemAdd(ShowQueueItem):
self.show.scene = self.scene if self.scene != None else sickbeard.SCENE_DEFAULT
self.show.paused = self.paused if self.paused != None else False
if self.show.anime:
self.show.release_groups = BlackAndWhiteList(self.show.indexerid)
# be smartish about this
if self.show.genre and "talk show" in self.show.genre.lower():
self.show.air_by_date = 1