Skip to content

Commit 61f04fd

Browse files
author
E.S. Rosenberg a.k.a. Keeper of the Keys
committed
Tweak logic since now both cover_file and art_file may return None.
1 parent c6e5676 commit 61f04fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/gpodder/coverart.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,14 @@ def get_cover(self, podcast, download=False, episode=None):
4949
# Get episode art.
5050
filename = episode.art_file
5151
cover_url = episode.episode_art_url
52-
if not cover_url:
53-
return None
5452
else:
5553
# Get podcast cover.
5654
filename = podcast.cover_file
5755
cover_url = podcast.cover_url
5856

57+
if not cover_url:
58+
return None
59+
5960
username = podcast.auth_username
6061
password = podcast.auth_password
6162

0 commit comments

Comments
 (0)