File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments