From d35e57ecf071491ca43c0067a180e254e9af0ac4 Mon Sep 17 00:00:00 2001 From: "E.S. Rosenberg a.k.a. Keeper of the Keys" Date: Mon, 11 Nov 2024 22:46:56 +0200 Subject: [PATCH 1/2] Fix bug I introduced when removing asserts (and latent logic error?) Fixes https://github.com/gpodder/gpodder-sailfish/issues/211 Signed-off-by: E.S. Rosenberg a.k.a. Keeper of the Keys --- src/gpodder/download.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpodder/download.py b/src/gpodder/download.py index 3445846..f422a9b 100644 --- a/src/gpodder/download.py +++ b/src/gpodder/download.py @@ -107,9 +107,9 @@ class ContentRange(object): def __init__(self, start, stop, length): if start < 0: - raise Exception("Bad start: %r" % start) - if not all(stop is None or (stop >= 0 and stop >= start)): - raise Exception("Bad stop: %r" % stop) + raise Exception("Bad start: {}, stop: {}, length: {}".format(str(start), str(stop), str(length))) + if stop is None or (stop >= 0 and stop <= start): + raise Exception("Bad stop: {}, start: {}, length: {}".format(str(stop), str(start), str(length))) self.start = start self.stop = stop From a62e6da6a3c1e3f58713abb7a28f717caf9106b8 Mon Sep 17 00:00:00 2001 From: "E.S. Rosenberg a.k.a. Keeper of the Keys" Date: Tue, 10 Dec 2024 13:25:51 +0200 Subject: [PATCH 2/2] Version bump to 4.17.2 Signed-off-by: E.S. Rosenberg a.k.a. Keeper of the Keys --- share/man/man1/gpo.1 | 2 +- src/gpodder/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/man/man1/gpo.1 b/share/man/man1/gpo.1 index 3255e03..98ae12f 100644 --- a/share/man/man1/gpo.1 +++ b/share/man/man1/gpo.1 @@ -1,4 +1,4 @@ -.TH GPO "1" "September 2024" "gpodder 4.17.1" "User Commands" +.TH GPO "1" "December 2024" "gpodder 4.17.2" "User Commands" .SH NAME gpo \- gPodder command-line interface .SH SYNOPSIS diff --git a/src/gpodder/__init__.py b/src/gpodder/__init__.py index 01103e1..f88049b 100644 --- a/src/gpodder/__init__.py +++ b/src/gpodder/__init__.py @@ -50,8 +50,8 @@ # This metadata block gets parsed by setup.py - use single quotes only __tagline__ = 'Media and podcast aggregator' __author__ = 'Thomas Perl ' -__version__ = '4.17.1' -__date__ = '2024-09-10' +__version__ = '4.17.2' +__date__ = '2024-12-10' __relname__ = 'Achva' __copyright__ = '© 2005-2024 Thomas Perl and the gPodder Team' __license__ = 'ISC / GPLv3 or later'