diff --git a/nhentai/command.py b/nhentai/command.py index b86ba9c..f7157da 100644 --- a/nhentai/command.py +++ b/nhentai/command.py @@ -49,6 +49,8 @@ def main(): doujinshi_dir = os.path.join(options.output_dir, str(doujinshi.id)) file_list = os.listdir(doujinshi_dir) + file_list.sort() + for index, image in enumerate(file_list): try: next_ = file_list[file_list.index(image) + 1] diff --git a/setup.py b/setup.py index d669769..7e01cf6 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ with open('requirements.txt') as f: def long_description(): - with codecs.open('README.md', 'rb') as f: + with codecs.open('README.md', 'r') as f: return str(f.read()) setup(