get country and language from parent if not available

This commit is contained in:
j 2007-08-09 10:41:54 +00:00
parent 3c313890f0
commit 96829cb906

View file

@ -263,6 +263,12 @@ class IMDb:
IMDbDict['release_date'] = self.parseReleaseinfo() IMDbDict['release_date'] = self.parseReleaseinfo()
IMDbDict['business'] = self.parseBusiness() IMDbDict['business'] = self.parseBusiness()
self.IMDbDict = IMDbDict self.IMDbDict = IMDbDict
if IMDbDict['episode_of']:
episode_of =IMDb(IMDbDict['episode_of']).parse()
for key in ('country', 'language'):
if not IMDbDict[key]:
IMDbDict[key] = episode_of[key]
return self.IMDbDict return self.IMDbDict
def getCredits(self, forcereload = False): def getCredits(self, forcereload = False):