~ubuntu-branches/ubuntu/vivid/gpodder/vivid

« back to all changes in this revision

Viewing changes to src/gpodder/feedcore.py

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-04-12 22:07:02 UTC
  • mfrom: (5.2.27 sid)
  • Revision ID: package-import@ubuntu.com-20130412220702-mux8v9r8zt2jin0x
Tags: 3.5.1-1
* New upstream release.
* d/control: declare versioned dependency on python-gtk2 (>= 2.16)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
2
#
3
3
# gPodder - A media aggregator and podcast client
4
 
# Copyright (c) 2005-2012 Thomas Perl and the gPodder Team
 
4
# Copyright (c) 2005-2013 Thomas Perl and the gPodder Team
5
5
#
6
6
# gPodder is free software; you can redistribute it and/or modify
7
7
# it under the terms of the GNU General Public License as published by
300
300
        pubdate = entry.get('updated_parsed', None)
301
301
 
302
302
    if pubdate is None:
303
 
        # See http://code.google.com/p/feedparser/issues/detail?id=327
304
 
        updated = entry.get('published', entry.get('updated', None))
305
 
        if updated is not None:
306
 
            # FIXME: This is kludgy. We should write our own date handler
307
 
            # and register it with feedparser.registerDateHandler() and/or
308
 
            # wait for feedparser to add support for this bogus date format.
309
 
            pubdate = feedparser._parse_date(updated.replace(',', ''))
310
 
 
311
 
    if pubdate is None:
312
303
        # Cannot determine pubdate - party like it's 1970!
313
304
        return 0
314
305