changeset 48:3dfa6a13ba3c

text_x_arnica: if itemlist lt columns set columns to len(itemlist)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 03 Jun 2008 11:00:21 +0200
parents 4ff94f1065a4
children 83078930ae66
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Tue Jun 03 10:27:24 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Tue Jun 03 11:00:21 2008 +0200
@@ -88,7 +88,7 @@
     @copyright: 2008 by MoinMoin:ReimarBauer
     @license: GNU GPL, see COPYING for details.
 """
-Dependencies = ['time'] # do not cache
+#Dependencies = ['time'] # do not cache
 
 import os, re
 from random import randint
@@ -619,7 +619,7 @@
                                    'alias': 'alias'
                                     })
 
-        COLUMNS = int(self.columns)
+        COLUMNS = min([int(self.columns), len(self.full)])
         if self.album == '1':
             COLUMNS = 1