Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
freevo
> freevo-1.8.1-headline_no_content.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File freevo-1.8.1-headline_no_content.patch of Package freevo
--- src/plugins/headlines.py +++ src/plugins/headlines.py @@ -146,8 +146,11 @@ while count < entcount: title = doc.entries[count].title.encode(doc.encoding) link = doc.entries[count].link.encode(doc.encoding) - description = doc.entries[count].content[0].value.encode(doc.encoding) - headlines.append((title, link, description)) + try: + description = doc.entries[count].content[0].value.encode(doc.encoding) + except: + description = doc.entries[count].summary.encode(doc.encoding) + headlines.append((title, link, description)) count = count + 1 except: #unreachable or url error