From c77751d1062e1079c835ba84c7feaf7b55ea0a99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Mon, 14 Jul 2014 18:35:49 +0200 Subject: [PATCH] [Feeds] set slug only if its non-empty --- mygpo/data/feeddownloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mygpo/data/feeddownloader.py b/mygpo/data/feeddownloader.py index bbb6f179..11bb2da5 100755 --- a/mygpo/data/feeddownloader.py +++ b/mygpo/data/feeddownloader.py @@ -195,7 +195,8 @@ class PodcastUpdater(object): if not podcast.slug: slug = PodcastSlug(podcast).get_slug() - podcast.add_slug(slug) + if slug: + podcast.add_slug(slug) assign_missing_episode_slugs(podcast) -- 2.11.4.GIT