From 31392dea96f1e61687368f2cad5966e3b3c5929d Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Wed, 2 Jun 2010 11:03:38 +0200 Subject: [PATCH] YouTube videos have a website link In case the link of a YouTube episode points to itself, we allow it to be the website URL. --- src/gpodder/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gpodder/model.py b/src/gpodder/model.py index ee492414..5f4da9c4 100644 --- a/src/gpodder/model.py +++ b/src/gpodder/model.py @@ -679,7 +679,8 @@ class PodcastEpisode(PodcastModelObject): return self def has_website_link(self): - return bool(self.link) and (self.link != self.url) + return bool(self.link) and (self.link != self.url or \ + youtube.is_video_link(self.link)) @staticmethod def from_feedparser_entry(entry, channel): -- 2.11.4.GIT