From b425ce95e18d6246308bd035ae605411f1b0c2b0 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Fri, 1 Apr 2011 14:12:23 +0200 Subject: [PATCH] Fallback to link if no guid exists (Maemo bug 12073) --- src/gpodder/model.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gpodder/model.py b/src/gpodder/model.py index 8481a71b..b117fc9c 100644 --- a/src/gpodder/model.py +++ b/src/gpodder/model.py @@ -164,6 +164,9 @@ class PodcastEpisode(PodcastModelObject): episode.description = entry.get('subtitle', '') episode.guid = entry.get('id', '') + if not episode.guid: + # Fallback to the entry URL if there is no GUID + episode.guid = entry.get('link', '') if entry.get('updated_parsed', None): episode.published = rfc822.mktime_tz(entry.updated_parsed+(0,))