get country and language from parent if not available
This commit is contained in:
parent
3c313890f0
commit
96829cb906
1 changed files with 6 additions and 0 deletions
|
@ -263,6 +263,12 @@ class IMDb:
|
|||
IMDbDict['release_date'] = self.parseReleaseinfo()
|
||||
IMDbDict['business'] = self.parseBusiness()
|
||||
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
|
||||
|
||||
def getCredits(self, forcereload = False):
|
||||
|
|
Loading…
Reference in a new issue