Skip to content

Commit e910657

Browse files
znedwmueslo
authored andcommitted
Only add the Director tag/s for movie submissions (fixes issue #105)
1 parent a25c215 commit e910657

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

pythonbits/bb.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,16 @@ def _render_tags(self):
293293
# todo: get episode-specific actors (from imdb?)
294294

295295
n = self['options']['num_cast']
296-
d = self['options']['num_directors']
297296
tags = list(self['summary']['genres'])
298-
if 'directors' in self['summary']:
299-
tags += [a['name']
300-
for a in self['summary']['directors'][:d]
301-
if a['name']]
297+
298+
# only add the Director tag/s for movie submissions
299+
if(self.subcategory() == MovieSubmission):
300+
d = self['options']['num_directors']
301+
if 'directors' in self['summary']:
302+
tags += [a['name']
303+
for a in self['summary']['directors'][:d]
304+
if a['name']]
305+
302306
if 'cast' in self['summary']:
303307
tags += [a['name']
304308
for a in self['summary']['cast'][:n]

0 commit comments

Comments
 (0)