Retrieve more than one strip in index mode.

This commit is contained in:
Bastian Kleineidam 2013-01-23 20:21:52 +01:00
parent 95e1fbbe55
commit 9ad4477d1f
2 changed files with 3 additions and 1 deletions

View file

@ -8,6 +8,8 @@ Features:
Changes: Changes:
- comics: CyanideAndHappiness image filename now has the strip number prefixed. - comics: CyanideAndHappiness image filename now has the strip number prefixed.
- comics: Indexed retrieval can now retrieve all (-a) or some (-n)
strips, not only one.
Fixes: Fixes:
- comics: Fixed LeastICouldDo image URL. - comics: Fixed LeastICouldDo image URL.

View file

@ -85,7 +85,7 @@ class _BasicScraper(object):
if self.indexes: if self.indexes:
for index in self.indexes: for index in self.indexes:
url = self.stripUrl % index url = self.stripUrl % index
for strip in self.getStripsFor(url, 1): for strip in self.getStripsFor(url, maxstrips):
yield strip yield strip
else: else:
url = self.getLatestUrl() url = self.getLatestUrl()