Changeset 1849
- Timestamp:
- 29/10/08 20:10:21 (2 months ago)
- svm:headrev:
cc3e1ea1-1e01-0410-8d68-8b121e83a9d5:11130- Location:
- freevo
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
src/plugins/headlines.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
freevo/ChangeLog
r1848 r1849 27 27 * Fixed automatic CD-ROM drive detection to ignore comments (B#2085387) 28 28 * Fixed encoding idlebar to be able to select a font (B#2187603) 29 * Fixed headlines plug-in to ignore items without a title, etc. (B#2183225) 29 30 * Fixed imdb helper to correctly handle dates when available (B#2075291) 30 31 * Fixed joy plug-in to remove any pending events when enabled (B#1916407) -
freevo/src/plugins/headlines.py
r1793 r1849 143 143 if doc.status < 400: 144 144 for entry in doc['entries']: 145 title = Unicode(entry.title) 146 link = Unicode(entry.link) 147 if entry.has_key('content') and len(entry['content']) >= 1: 148 description = Unicode(entry['content'][0].value) 149 else: 150 description = Unicode(entry['summary_detail'].value) 151 headlines.append((title, link, description)) 145 try: 146 title = Unicode(entry.title) 147 link = Unicode(entry.link) 148 if entry.has_key('content') and len(entry['content']) >= 1: 149 description = Unicode(entry['content'][0].value) 150 else: 151 description = Unicode(entry['summary_detail'].value) 152 headlines.append((title, link, description)) 153 except AttributeError: 154 pass 152 155 else: 153 156 _debug_('Error %s, getting %r' % (doc.status, self.url))
