Skip to content

Commit

Permalink
Merge pull request #42 from Keeper-of-the-Keys/per-podcast-episode-ar…
Browse files Browse the repository at this point in the history
…t-setting

Per podcast episode art setting
  • Loading branch information
Keeper-of-the-Keys authored Feb 11, 2021
2 parents f57a52a + a539ab3 commit 682760e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions share/man/man1/gpo.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH GPO "1" "April 2020" "gpodder 4.11.2" "User Commands"
.TH GPO "1" "February 2021" "gpodder 4.12.0" "User Commands"
.SH NAME
gpo \- gPodder command-line interface
.SH SYNOPSIS
Expand Down Expand Up @@ -89,4 +89,4 @@ Check for new episodes, then download all new episodes

.SH BUGS
.PP
Report bugs at \fIhttp://bugs.gpodder.org/\fR
Report bugs at \fIhttps://bugs.gpodder.org/\fR
10 changes: 5 additions & 5 deletions src/gpodder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

Expand Down
10 changes: 7 additions & 3 deletions src/gpodder/coverart.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ def __init__(self, core):

def get_cover(self, podcast, download=False, episode=None):
if episode:
# Get episode art.
filename = episode.art_file
cover_url = episode.episode_art_url
if podcast.download_episode_art == True:
# Get episode art.
filename = episode.art_file
cover_url = episode.episode_art_url
else:
cover_url = None

else:
# Get podcast cover.
filename = podcast.cover_file
Expand Down
1 change: 1 addition & 0 deletions src/gpodder/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class PodcastModelFields(minidb.Model):
section = str
payment_url = str
download_strategy = int
download_episode_art = bool


class PodcastModelMixin(object):
Expand Down

0 comments on commit 682760e

Please sign in to comment.