fixed url for image

This commit is contained in:
2018-11-05 07:00:30 +01:00
parent 0a5d6ed30c
commit 6700ad6f14

View File

@@ -294,7 +294,7 @@ class Infomentor(object):
def get_newsimage(self, id): def get_newsimage(self, id):
self.logger.info('fetching article image: %s', id) self.logger.info('fetching article image: %s', id)
filename = '{}.image'.format(id) filename = '{}.image'.format(id)
url = self._mim_url('News/NewsImage/GetImage?id={}'.format(id)) url = 'News/NewsImage/GetImage?id={}'.format(id)
return self.download_file(url, directory='images', filename=filename) return self.download_file(url, directory='images', filename=filename)
def get_calendar(self, offset=0, weeks=1): def get_calendar(self, offset=0, weeks=1):