From 71cca6b87f30ee7327af94090bbdab65dbeb2761 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Tue, 13 Nov 2012 18:43:31 -0800 Subject: [PATCH] Removed excess tags from title Now only adds "Source", "Video Format", "Audio Format", and "Language" --- couchpotato/core/providers/nzb/newzbin/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/providers/nzb/newzbin/main.py b/couchpotato/core/providers/nzb/newzbin/main.py index 06a09a94..55019ad5 100644 --- a/couchpotato/core/providers/nzb/newzbin/main.py +++ b/couchpotato/core/providers/nzb/newzbin/main.py @@ -94,8 +94,10 @@ class Newzbin(NZBProvider, RSS): # Add attributes to name try: + use_attr = ['Source', 'Video Fmt', 'Audio Fmt', 'Language'] for attr in nzb.find('{%s}attributes' % REPORT_NS): - title += ' ' + attr.text + if attr.get("type") in use_attr: + title += ' ' + attr.text except: pass