From fbe05a21c2e81deeb7089bff86e0290fe6939516 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Mon, 15 Jun 2015 13:48:01 +0100 Subject: [PATCH] Change param item "features" passed to Beautiful Soup to prevent false +ve warning in r353. Change NotifyMyAndroid to its new web location. --- CHANGES.md | 4 +++- .../interfaces/default/config_notifications.tmpl | 2 +- sickbeard/bs4_parser.py | 13 +++++++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index c70ac37c..89a7f5ef 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -28,6 +28,7 @@ * Fix show list view when no shows exist and "Group show lists shows into" is set to anything other than "One Show List" * Fix fault matching air by date shows by using correct episode/season strings in find search results * Change add 'hevc', 'x265' and some langs to Config Search/Episode Search/Ignore result with any word +* Change NotifyMyAndroid to its new web location * Update feedparser library 5.1.3 to 5.2.0 (8c62940) * Remove feedcache implementation and library * Add coverage testing and coveralls support @@ -45,7 +46,6 @@ * Update SimpleJSON library 2.0.9 to 3.7.3 (0bcdf20) * Update xmltodict library 0.9.0 to 0.9.2 (579a005) * Update dateutil library 2.2 to 2.4.2 (a6b8925) -* Change zoneinfo update/loader to be compatible with dateutil 2.4.2 * Update ConfigObj library 4.6.0 to 5.1.0 (a68530a) * Update Beautiful Soup to 4.3.2 (r353) @@ -54,6 +54,8 @@ * Update Tornado webserver from 4.2.dev1 (609dbb9) to 4.2b1 (61a16c9) * Change reload_module call to explicit import lib/six.moves * Change queue, httplib, cookielib and xmlrpclib to use explicit import lib/six.moves +* Change zoneinfo update/loader to be compatible with dateutil 2.4.2 +* Change param item "features" passed to Beautiful Soup to prevent false +ve warning in r353 ### 0.9.1 (2015-05-25 03:03:00 UTC) diff --git a/gui/slick/interfaces/default/config_notifications.tmpl b/gui/slick/interfaces/default/config_notifications.tmpl index 5cfe06af..b6d88a15 100644 --- a/gui/slick/interfaces/default/config_notifications.tmpl +++ b/gui/slick/interfaces/default/config_notifications.tmpl @@ -1159,7 +1159,7 @@
-

Notify My Android

+

Notify My Android

Notify My Android is a Prowl-like Android App and API that offers an easy way to send notifications from your application directly to your Android device.

diff --git a/sickbeard/bs4_parser.py b/sickbeard/bs4_parser.py index 609db380..bd48f50d 100644 --- a/sickbeard/bs4_parser.py +++ b/sickbeard/bs4_parser.py @@ -3,11 +3,20 @@ from bs4 import BeautifulSoup class BS4Parser: def __init__(self, *args, **kwargs): - self.soup = BeautifulSoup(*args, **kwargs) + # list type param of "feature" arg is not currently correctly tested by bs4 (r353) + # so for now, adjust param to provide possible values until the issue is addressed + kwargs_new = {} + for k, v in kwargs.items(): + if 'features' in k and isinstance(v, list): + v = [item for item in v if item in ['html5lib', 'html.parser', 'html', 'lxml', 'xml']][0] + + kwargs_new[k] = v + + self.soup = BeautifulSoup(*args, **kwargs_new) def __enter__(self): return self.soup def __exit__(self, exc_ty, exc_val, tb): self.soup.clear(True) - self.soup = None \ No newline at end of file + self.soup = None