Strip description of episodes
This commit is contained in:
parent
2c280a9b0e
commit
5bf451d0d9
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue