diff --git a/fanficdownloader/ffnet.py b/fanficdownloader/ffnet.py
index 8925f51..7b51a48 100644
--- a/fanficdownloader/ffnet.py
+++ b/fanficdownloader/ffnet.py
@@ -285,14 +285,15 @@ class FFNet(FanfictionSiteAdapter):
except Exception, e:
data = ''
logging.error("Caught an exception reading URL " + url + ". Exception " + unicode(e) + ".")
+ logging.error("Data downloaded: <%s>" % data)
if data is None:
- raise FailedToDownload("Error downloading Chapter: %s! Problem getting page!" % url)
-
+ raise FailedToDownload("Error downloading Chapter: <%s>! Problem getting page!" % url)
+
lines = data.split('\n')
-
+
textbuf = ''
emit = False
-
+
olddata = data
try:
data = data.decode('utf8')
@@ -309,7 +310,7 @@ class FFNet(FanfictionSiteAdapter):
div = soup.find('div', {'id' : 'storytext'})
if None == div:
logging.debug(data)
- raise FailedToDownload("Error downloading Chapter: %s! Missing required element!" % url)
+ raise FailedToDownload("Error downloading Chapter: <%s>! Missing required element!" % url)
return div.__str__('utf8')
diff --git a/status.html b/status.html
index fa56e66..a5dfbf3 100644
--- a/status.html
+++ b/status.html
@@ -1,90 +1,76 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% if fic.completed %}
-
Your fic has finished processing and you can download it now:
-
{{ fic.title }}
- by {{ fic.author }} ({{ fic.format }})
- {% else %}
- {% if fic.failure %}
- Your fic failed to process. Please check the URL and the error message below.
-
- {{ fic.failure }}
-
- {% else %}
-
Not done yet. This page will periodically poll to see if your story has finished.
- {% endif %}
- {% endif %}
-
Or see your personal list of previously downloaded fanfics.
-
-
-
-
-
-
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+ {% if fic.completed %}
+
Your fic has finished processing and you can download it now:
+
{{ fic.title }}
+ by {{ fic.author }} ({{ fic.format }})
+ {% else %}
+ {% if fic.failure %}
+ Your fic failed to process. Please check the URL and the error message below.
+
+ {{ fic.failure }}
+
+ {% else %}
+
Not done yet. This page will periodically poll to see if your story has finished.
+ {% endif %}
+ {% endif %}
+
Or see your personal list of previously downloaded fanfics.
+
+
+