From 5a172d30f119480ee078d603865c48db8ca8e1c8 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Thu, 5 Sep 2019 19:46:35 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20Qualit=C3=A0=20in=20support=20(rimuove=20?= =?UTF-8?q?gli=20spazi)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/support.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/support.py b/core/support.py index 8c613c68..118d6ec9 100644 --- a/core/support.py +++ b/core/support.py @@ -200,7 +200,7 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t episode = re.sub(r'\s-\s|-|x|–|×', 'x', scraped['episode']) if scraped['episode'] else '' title = cleantitle(scraped['title']) if scraped['title'] else '' title2 = cleantitle(scraped['title2']) if scraped['title2'] else '' - quality = scraped['quality'] if scraped['quality'] else '' + quality = scraped['quality'].strip() if scraped['quality'] else '' Type = scraped['type'] if scraped['type'] else '' plot = cleantitle(scraped["plot"]) if scraped["plot"] else '' @@ -353,8 +353,8 @@ def scrape(func): if 'lang' in bl: it.contentLanguage, it.title = scrapeLang(bl, it.contentLanguage, it.title) if 'quality' in bl and bl['quality']: - it.quality = bl['quality'] - it.title = it.title + typo(bl['quality'], '_ [] color kod') + it.quality = bl['quality'].strip() + it.title = it.title + typo(bl['quality'].strip(), '_ [] color kod') log('BLOCK ', '=', block) itemlist.extend(blockItemlist) matches.extend(blockMatches)