Skip to content

Commit

Permalink
Merge pull request #2 from theslavicbear/development
Browse files Browse the repository at this point in the history
Bug fix in def MakeEpub(), no longer relies on system arguments
  • Loading branch information
theslavicbear authored Nov 1, 2018
2 parents 0ab47b2 + 5a02ee0 commit 64ec7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ebook-Publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def MakeText(site):
#This function is basically all space magic from the docs of ebooklib
def MakeEpub(site):
book=epub.EpubBook()
book.set_identifier(urllib.parse.urlparse(str(sys.argv[1]))[2])
book.set_identifier(urllib.parse.urlparse(url)[2])
book.set_title(site.title)
book.set_language('en')
book.add_author(site.author)
Expand Down

0 comments on commit 64ec7e9

Please sign in to comment.