try:
try:
if url is None:
- self.index(stream=stream)
+ self.index(stream=stream, page=page)
elif url.endswith('random'):
self.random(
url=url, stream=stream, max_width=500, max_height=500)
if is_image(picture_path):
yield picture_path
- def index(self, stream=None):
+ def index(self, page=0, stream=None):
LOG.debug('index page')
- return self._directory(self._base_path, stream=stream)
+ return self._directory(path=self._base_path, page=page, stream=stream)
def _original_url(self, url):
"""Reverse thumbnail URL mapping