Merge branch 'master' into develop

This commit is contained in:
JackDandy 2017-10-06 23:00:48 +01:00
commit 977f52c2f8
3 changed files with 16 additions and 2 deletions

View file

@ -128,6 +128,11 @@
* Fix article link color on some page were changed blue
### 0.12.31 (2017-10-06 22:30:00 UTC)
* Change improve handling of connection failures for metadata during media processing
### 0.12.30 (2017-09-29 00:20:00 UTC)
* Fix Media Providers/Custom Newznab tab action 'Delete' then 'Save Changes'

View file

@ -256,6 +256,9 @@ class XBMC_12PlusMetadata(generic.GenericMetadata):
curEpToWrite.episode) + " on " + sickbeard.indexerApi(
ep_obj.show.indexer).name + ".. has it been removed? Should I delete from db?")
return None
except (StandardError, Exception):
logger.log(u"Not generating nfo because failed to fetched tv info data at this time", logger.DEBUG)
return None
if getattr(myEp, 'firstaired', None) is None:
myEp["firstaired"] = str(datetime.date.fromordinal(1))

View file

@ -36,6 +36,8 @@ from name_parser.parser import NameParser, InvalidNameException, InvalidShowExce
from lib import subliminal
import fnmatch
from imdb._exceptions import IMDbError
try:
from lib.send2trash import send2trash
except ImportError:
@ -1068,8 +1070,12 @@ class TVShow(object):
'votes': '',
'last_update': ''}
i = imdb.IMDb()
imdbTv = i.get_movie(str(re.sub('[^0-9]', '', self.imdbid or '%07d' % self.ids[indexermapper.INDEXER_IMDB]['id'])))
try:
i = imdb.IMDb()
imdbTv = i.get_movie(
str(re.sub('[^0-9]', '', self.imdbid or '%07d' % self.ids[indexermapper.INDEXER_IMDB]['id'])))
except IMDbError:
return
for key in filter(lambda x: x.replace('_', ' ') in imdbTv.keys(), imdb_info.keys()):
# Store only the first value for string type