From c4b7d5b9301263653ac14fa4002f6b7da414b02d Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Thu, 26 Mar 2020 00:43:43 +0100 Subject: [PATCH] Fix index feature for GoComics (fixes #155) --- dosagelib/plugins/gocomics.py | 4 ++-- tests/responses/gocomics-page.html.gz | Bin 0 -> 8989 bytes tests/responses/gocomics-root.html.gz | Bin 0 -> 6927 bytes tests/test_modules.py | 14 +++++++++++++- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 tests/responses/gocomics-page.html.gz create mode 100644 tests/responses/gocomics-root.html.gz diff --git a/dosagelib/plugins/gocomics.py b/dosagelib/plugins/gocomics.py index 0d7659dbe..86a7de793 100644 --- a/dosagelib/plugins/gocomics.py +++ b/dosagelib/plugins/gocomics.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam -# Copyright (C) 2015-2019 Tobias Gruetzmacher +# Copyright (C) 2015-2020 Tobias Gruetzmacher from ..scraper import _ParserScraper from ..helpers import indirectStarter, xpath_class @@ -27,7 +27,7 @@ class GoComics(_ParserScraper): return "%s_%s%s%s.gif" % (self.shortname, year, month, day) def getIndexStripUrl(self, index): - return self.url + self.path + '/%s' % index + return '{}/{}'.format(self.url, index) def shouldSkipUrl(self, url, data): """Skip pages without images.""" diff --git a/tests/responses/gocomics-page.html.gz b/tests/responses/gocomics-page.html.gz new file mode 100644 index 0000000000000000000000000000000000000000..4d8f1b3a19dab5818c646e579132d8aa4e8f7752 GIT binary patch literal 8989 zcmV+&BjVg2iwFP!000021MEH9j@w3-&uL)(p~7II9Y7`VPSI9tVE4pH29r%N_9U2n z5lUo9VoZ@-l4^Aa`&0W3`(t~~sUn-Cq;|)NGww+@V6pCX?&s8n^!(Gme0%lgpWl7K zw)HMuT+H#oQju*g4Vf8>3&!SKDPm0E-@H!hR4%SWdYxoUWHI|HU#(=tWX8Uz3h{sc z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LPb%eyBqf4;zE#{?8>T literal 0 HcmV?d00001 diff --git a/tests/test_modules.py b/tests/test_modules.py index 9dc2a0b58..9faa15674 100644 --- a/tests/test_modules.py +++ b/tests/test_modules.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2019 Tobias Gruetzmacher +# Copyright (C) 2019-2020 Tobias Gruetzmacher import re import pytest @@ -27,3 +27,15 @@ class TestModules(object): httpmocks.png(re.compile(r'https://turnoff\.us/image/en/.*\.png')) cmd('--numstrips', '2', '--basepath', str(tmpdir), 'turnoff') + + @responses.activate + def test_gocomics_index(self, tmpdir): + httpmocks.page('https://www.gocomics.com/calvinandhobbesespanol', + 'gocomics-root') + httpmocks.page(re.compile('.*espanol/2020/03/25'), 'gocomics-page') + httpmocks.page(re.compile('.*espanol/2012/07/22'), 'gocomics-page') + + httpmocks.png(re.compile(r'https://assets\..*')) + + cmd('--basepath', str(tmpdir), 'CalvinAndHobbesEnEspanol') + cmd('--basepath', str(tmpdir), 'CalvinAndHobbesEnEspanol:2012/07/22')