Commit f29a9214dad51233a579efc596a64699ecfe5f02
- Diff rendering mode:
- inline
- side by side
entry.py
(5 / 0)
|   | |||
| 390 | 390 | #TODO: need to output warning and move on, not raise exception | |
| 391 | 391 | print cursor._rows | |
| 392 | 392 | raise Exception("Cannot determine unqiue entry_id %d" % cursor.rowcount) | |
| 393 | |||
| 394 | class LibreFMPlay(LastFMPlay): | ||
| 395 | """Libre.fm is using Dublin Core or something?.""" | ||
| 396 | def get_timestamp(self): | ||
| 397 | return int(time.mktime(time.strptime(self.entry.dcterms_date, '%Y-%m-%dT%X+01:00'))) - time.timezone | ||
| 393 | 398 | ||
| 394 | 399 | class MySpaceBlogEntry(BlogEntry): | |
| 395 | 400 | def get_content(self): |
feed.py
(3 / 0)
|   | |||
| 233 | 233 | class LastFM(SharedItems): | |
| 234 | 234 | entryClass = entry.LastFMPlay | |
| 235 | 235 | ||
| 236 | class LibreFM(SharedItems): | ||
| 237 | entryClass = entry.LibreFMPlay | ||
| 238 | |||
| 236 | 239 | class MySpaceBlog(Blog): | |
| 237 | 240 | entryClass = entry.MySpaceBlogEntry | |
| 238 | 241 |

