Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
-Changed find_content_start() to be more lenient
-Deletes 'temp' directory after compilation
-Added usage note.
  • Loading branch information
starryangt committed May 26, 2015
1 parent 2c59088 commit ef4873c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 2 deletions.
Binary file removed .README.md.swp
Binary file not shown.
Binary file added .main.py.swp
Binary file not shown.
Binary file added __pycache__/epub.cpython-34.pyc
Binary file not shown.
Binary file added __pycache__/pyn.cpython-34.pyc
Binary file not shown.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys
import pyn
import epub
import shutil
from threading import Thread

qt_app = QApplication(sys.argv)
Expand All @@ -23,6 +24,8 @@
It handles most blogspot weirdness, but not all. Experiment!
Order of the chapters in the EPUB is determined by the order in which
you select them, so be careful withat that.
'''


Expand Down Expand Up @@ -161,7 +164,7 @@ def compile_epub_worker(self):
newEpub.addIMG(img)
newEpub.createEpub()
self.status.setText("Done")

shutil.rmtree('temp')
@Slot()
def index_url_changed(self, string):
self.index_url = string
Expand Down
2 changes: 1 addition & 1 deletion pyn.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def find_start_tag(soup):
else:
fail += 1

if correct > 10:
if correct > 4:
return tag
elif fail > 2:
break
Expand Down

0 comments on commit ef4873c

Please sign in to comment.