# this usually only happens if they have an NFO in their show dir which gave us a indexer ID that has no proper english version of the show
ifnots['seriesname']:
logger.log(u"Show in "+self.showDir+" has no name on "+self.indexer+", probably the wrong language used to search with.",logger.ERROR)
ui.notifications.error("Unable to add show","Show in "+self.showDir+" has no name on "+self.indexer+", probably the wrong language. Delete .nfo and add manually in the correct language.")
self._finishEarly()
return
# if the show has no episodes/seasons
ifnots:
logger.log(u"Show "+str(s['seriesname'])+" is on "+self.indexer+" but contains no season/episode data.",logger.ERROR)
ui.notifications.error("Unable to add show","Show "+str(s['seriesname'])+" is on "+self.indexer+" but contains no season/episode data.")
ui.notifications.error("Unable to add show","Unable to look up the show in "+self.showDir+" on "+self.indexer+", not using the NFO. Delete .nfo and add manually in the correct language or try a different Indexer.")
# this usually only happens if they have an NFO in their show dir which gave us a indexer ID that has no proper english version of the show
ifgetattr(s,'seriesname',None)isNone:
logger.log(u"Show in "+self.showDir+" has no name on "+self.indexer+", probably the wrong language used to search with.",logger.ERROR)
ui.notifications.error("Unable to add show","Show in "+self.showDir+" has no name on "+self.indexer+", probably the wrong language. Delete .nfo and add manually in the correct language.")
self._finishEarly()
return
# if the show has no episodes/seasons
ifnots:
logger.log(u"Show "+str(s['seriesname'])+" is on "+self.indexer+" but contains no season/episode data.",logger.ERROR)
ui.notifications.error("Unable to add show","Show "+str(s['seriesname'])+" is on "+self.indexer+" but contains no season/episode data.")
self._finishEarly()
return
exceptException,e:
logger.log(u"Unable to find show ID:"+self.indexer_id+"on Indexer: "+self.indexer,logger.ERROR)
ui.notifications.error("Unable to add show","Unable to look up the show in "+self.showDir+" on "+self.indexer+" using ID "+self.indexer_id+", not using the NFO. Delete .nfo and try adding manually again.")
self._finishEarly()
return
try:
# clear the name cache
name_cache.clearCache()
@ -306,8 +305,6 @@ class QueueItemAdd(ShowQueueItem):
exceptimdb_exceptions.IMDbError,e:
#todo Insert UI notification
logger.log(u" Something wrong on IMDb api: "+ex(e),logger.WARNING)