From ac15eb7526127ec3c6b23d8c878cba5b4713d84e Mon Sep 17 00:00:00 2001 From: Russell Heilling <russell@heilling.net> Date: Thu, 14 Jun 2018 11:42:26 +0000 Subject: [PATCH] Update Scenetime provider after api change The browse_API.php endpoint is no longer available, and the browse.php page has a slightly different format. This update switches to browse.php and only looks for torrent rows within the <div id="torrenttable"> element rather than the entire page. --- sickbeard/providers/scenetime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/providers/scenetime.py b/sickbeard/providers/scenetime.py index c5f04e033..d0af1159e 100644 --- a/sickbeard/providers/scenetime.py +++ b/sickbeard/providers/scenetime.py @@ -46,7 +46,7 @@ class SceneTimeProvider(TorrentProvider): # pylint: disable=too-many-instance-a self.urls = {'base_url': 'https://www.scenetime.com', 'login': 'https://www.scenetime.com/takelogin.php', 'detail': 'https://www.scenetime.com/details.php?id=%s', - 'apisearch': 'https://www.scenetime.com/browse_API.php', + 'apisearch': 'https://www.scenetime.com/browse.php', 'download': 'https://www.scenetime.com/download.php/%s/%s'} self.url = self.urls['base_url'] @@ -100,7 +100,7 @@ class SceneTimeProvider(TorrentProvider): # pylint: disable=too-many-instance-a continue with BS4Parser(data, 'html5lib') as html: - torrent_rows = html.findAll('tr') + torrent_rows = html.find(id='torrenttable').findAll('tr') # Continue only if one Release is found if len(torrent_rows) < 2: -- GitLab