Strip description of episodes

This commit is contained in:
Thomas Perl 2011-08-03 18:09:19 +02:00
parent 2c280a9b0e
commit 5bf451d0d9

View file

@ -387,6 +387,9 @@ class PodcastEpisode(PodcastModelObject):
# Decode the description to avoid gPodder bug 1277
if isinstance(desc, str):
desc = desc.decode('utf-8', 'ignore')
desc = desc.strip()
if len(desc) > MAX_LINE_LENGTH:
return desc[:MAX_LINE_LENGTH] + '...'
else: