Skip to content

Commit 682760e

Browse files
Merge pull request #42 from Keeper-of-the-Keys/per-podcast-episode-art-setting
Per podcast episode art setting
2 parents f57a52a + a539ab3 commit 682760e

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

share/man/man1/gpo.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH GPO "1" "April 2020" "gpodder 4.11.2" "User Commands"
1+
.TH GPO "1" "February 2021" "gpodder 4.12.0" "User Commands"
22
.SH NAME
33
gpo \- gPodder command-line interface
44
.SH SYNOPSIS
@@ -89,4 +89,4 @@ Check for new episodes, then download all new episodes
8989

9090
.SH BUGS
9191
.PP
92-
Report bugs at \fIhttp://bugs.gpodder.org/\fR
92+
Report bugs at \fIhttps://bugs.gpodder.org/\fR

src/gpodder/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
"""
66
gPodder: Media and podcast aggregator
7-
Copyright (c) 2005-2020 Thomas Perl and the gPodder Team
7+
Copyright (c) 2005-2021 Thomas Perl and the gPodder Team
88
99
Historically, gPodder was licensed under the terms of the "GNU GPLv2 or
1010
later", and has been upgraded to "GNU GPLv3 or later" in August 2007.
@@ -50,10 +50,10 @@
5050
# This metadata block gets parsed by setup.py - use single quotes only
5151
__tagline__ = 'Media and podcast aggregator'
5252
__author__ = 'Thomas Perl <[email protected]>'
53-
__version__ = '4.11.2'
54-
__date__ = '2020-04-10'
55-
__relname__ = 'Geshem'
56-
__copyright__ = '© 2005-2020 Thomas Perl and the gPodder Team'
53+
__version__ = '4.12.0'
54+
__date__ = '2021-02-12'
55+
__relname__ = 'Malkosh'
56+
__copyright__ = '© 2005-2021 Thomas Perl and the gPodder Team'
5757
__license__ = 'ISC / GPLv3 or later'
5858
__url__ = 'http://gpodder.org/'
5959

src/gpodder/coverart.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,13 @@ def __init__(self, core):
4646

4747
def get_cover(self, podcast, download=False, episode=None):
4848
if episode:
49-
# Get episode art.
50-
filename = episode.art_file
51-
cover_url = episode.episode_art_url
49+
if podcast.download_episode_art == True:
50+
# Get episode art.
51+
filename = episode.art_file
52+
cover_url = episode.episode_art_url
53+
else:
54+
cover_url = None
55+
5256
else:
5357
# Get podcast cover.
5458
filename = podcast.cover_file

src/gpodder/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class PodcastModelFields(minidb.Model):
113113
section = str
114114
payment_url = str
115115
download_strategy = int
116+
download_episode_art = bool
116117

117118

118119
class PodcastModelMixin(object):

0 commit comments

Comments
 (0)