commit 2268ea7ab4dc549dea3eb91663d3a07cb615454d
parent 24334bbe3ca0979e51de8834072569ef60a11991
Author: Brian C. Lane <bcl@brianlane.com>
Date: Sat, 6 Mar 2010 10:13:47 -0800
Limit XML description string to 250 characters.
Reportedly this prevents the Roku player from crashing when attempting
to display long descriptions.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/hms/hms.py b/server/hms/hms.py
@@ -1345,7 +1345,7 @@ class XMLListHandler(BaseHandler):
'contentType' : row["contentType"] or "movie",
'title' : row["title"] or os.path.basename(row["path"])[:-4],
'titleSeason' : row["titleSeason"],
- 'description' : description,
+ 'description' : description[:250],
'sdbifurl' : sdBifUrl,
'hdbifurl' : hdBifUrl,
'sdPosterUrl' : '%s/media/image/sd/%s' % (host, row["id"]),