From 104e9f1c5cfc78291b431288b980e4d1b2d52e3b Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 8 Oct 2012 11:27:28 +0200 Subject: [PATCH] format_path: don't use more than 10 director names --- ox/movie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/movie.py b/ox/movie.py index 5e564a2..9ca0f70 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -43,7 +43,7 @@ def format_path(data, directory_key='director'): year = data['seriesYear' if data['isEpisode'] else 'year'] or None language = 'en' if data['type'] == 'subtitle' and data['language'] == None else data['language'] parts = map(format_underscores, filter(lambda x: x != None, [ - u'; '.join(director), + u'; '.join(director[:10]), u'%s%s' % (title, u' (%s)' % year if year else ''), u'%s%s%s%s%s%s' % ( data['title'] or 'Untitled',