mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Change improve handling of connection failures for metadata during media processing.
This commit is contained in:
parent
e96f542021
commit
6796059e1b
3 changed files with 17 additions and 3 deletions
|
@ -1,4 +1,9 @@
|
|||
### 0.12.30 (2017-09-29 00:20:00 UTC)
|
||||
### 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'
|
||||
* Fix enforce value API expects for paused show flag
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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:
|
||||
|
@ -986,8 +988,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
|
||||
|
|
Loading…
Reference in a new issue