forked from 0x2620/pandora
no oxdb_id without title
This commit is contained in:
parent
8d6cf495f7
commit
16dbedfa81
1 changed files with 2 additions and 0 deletions
|
@ -383,6 +383,8 @@ class Item(models.Model):
|
||||||
def oxdb_id(self):
|
def oxdb_id(self):
|
||||||
if not settings.USE_IMDB:
|
if not settings.USE_IMDB:
|
||||||
return self.itemId
|
return self.itemId
|
||||||
|
if not self.get('title', None) and not self.get('director', None):
|
||||||
|
return None
|
||||||
return utils.oxdb_id(self.get('title', ''), self.get('director', []), str(self.get('year', '')),
|
return utils.oxdb_id(self.get('title', ''), self.get('director', []), str(self.get('year', '')),
|
||||||
self.get('season', ''), self.get('episode', ''),
|
self.get('season', ''), self.get('episode', ''),
|
||||||
self.get('episode_title', ''), self.get('episode_director', []), self.get('episode_year', ''))
|
self.get('episode_title', ''), self.get('episode_director', []), self.get('episode_year', ''))
|
||||||
|
|
Loading…
Reference in a new issue