Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.

Commit

Permalink
fix bug of manhua.dmzj.com
Browse files Browse the repository at this point in the history
  • Loading branch information
XIAZY committed Jan 20, 2017
1 parent a03ab0b commit f7fa6d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ def get_image_link(self, parent_link, page):
link = 'http://images.dmzj.com/' + self.image_list[page - 1]
return link

def down(self, comic_name, parent_link, link, parent_title, page, dir):
img_data = self.get_data(link, 'http://manhua.dmzj.com' + parent_link, is_destop=True)
def down(self, comic_name, parent_link, link, parent_title, page, dir=''):
img_data = self.get_data(link, 'http://manhua.dmzj.com' + parent_link, is_destop=True, is_file=True)
with open(self.get_path(comic_name, parent_title, page, link.split('.')[-1], dir=dir), 'wb+') as file:
file.write(img_data)

Expand Down

0 comments on commit f7fa6d4

Please sign in to comment.