Commit 5101f61b authored by jcfp's avatar jcfp

Patches: add 90_rss_feed_without_id_would_crash, backported from upstream commit 832b4fd7.

parent fef9cfed
......@@ -4,6 +4,8 @@ sabnzbdplus (2.3.6+dfsg-1) UNRELEASED; urgency=medium
* Rules: increase desktop icon size to 64x64 pixels.
* Desktop: add MimeType key.
* Mime: add d/sabnzbdplus.sharedmimeinfo.
* Patches: add 90_rss_feed_without_id_would_crash, backported from
upstream commit 832b4fd7.
-- JCF Ploemen (jcfp) <linux@jcf.pm> Fri, 28 Dec 2018 22:05:22 +0000
......
From eae68bd6bac8607ad7b884604a437aca832b4fd7 Mon Sep 17 00:00:00 2001
From: Safihre <safihre@sabnzbd.org>
Date: Sun, 23 Dec 2018 11:44:00 +0100
Subject: [PATCH] RSS feedwithout ID would crash
See https://forums.sabnzbd.org/viewtopic.php?f=2&t=23910
@OneCDOnly
---
sabnzbd/rss.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sabnzbd/rss.py b/sabnzbd/rss.py
index 8cbb3599..f4561458 100644
--- a/sabnzbd/rss.py
+++ b/sabnzbd/rss.py
@@ -648,7 +648,7 @@ def _get_link(entry):
# GUID usually has URL to result on page
infourl = None
- if entry.id and entry.id != link and entry.id.startswith('http'):
+ if entry.get('id') and entry.id != link and entry.id.startswith('http'):
infourl = entry.id
if size == 0L:
--
......@@ -3,3 +3,4 @@
06_use_packaged_modules.diff
08_disable_new_version_check.diff
09_remove_external_resources.diff
90_rss_feed_without_id_would_crash.diff
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment