google-code-export / fanficdownloader

Automatically exported from code.google.com/p/fanficdownloader
0 stars 0 forks source link

hexfiles format #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Are you using the CLI, web service or calibre plugin?
CLI

What is the story URL?
http://thehexfiles.net/viewstory.php?sid=11941

What is the output format you used?
html

What steps will reproduce the problem?
normal downloading process 

What version of the product are you using? On what operating system?
fanficdownloader-4.4.31, ubuntu 12.04

What is the expected output? What do you see instead?
In fiction downloaded from hexfiles, the content table (you know, with the 
category, genre, summary, etc.) has this weird issue: The row with the summary 
has an additional <td> to it, which means the text of the summary is always 
displayed in the far right. 

For example in the url above:

<table class="full">

<tr><td><b>Category:</b></td><td>Harry Potter, One-Shot (Adult)</td></tr>

<tr><td><b>Genre:</b></td><td>Action/Adventure, Crack!Fic, Humour, One 
Shot</td></tr>

<tr><td><b>Characters:</b></td><td>Draco Malfoy, Harry Potter</td></tr>

<tr><td><b>Relationships:</b></td><td>Harry Potter/Draco Malfoy</td></tr>

<tr><td><b>Status:</b></td><td>Completed</td></tr>

<tr><td><b>Published:</b></td><td>2008-09-14</td></tr>

<tr><td><b>Updated:</b></td><td>2008-09-14</td></tr>

<tr><td><b>Rating:</b></td><td>PG-13</td></tr>

<tr><td><b>Warnings:</b></td><td>Adult Language, Sexual Content, 
Violence</td></tr>

<tr><td><b>Chapters:</b></td><td>1</td></tr>

<tr><td><b>Words:</b></td><td>4,233</td></tr>

<tr><td><b>Publisher:</b></td><td>thehexfiles.net</td></tr>

<tr><td><b>Summary:</b></td><td><td class="summary">
When Harry collapses at his birthday party, Ron just knows that Malfoy poisoned 
him. And he's going to find out how.
</td></td></tr>

</table>

Please provide any additional information below.

This issue has always been there even in the previous few versions. It's not a 
real annoyance if the summary is short, but it is when the summaries are long. 
I'm not really sure anything can be done about it, but I thought I'd report it 
anyway.

Original issue reported on code.google.com by amelie...@web.de on 1 Nov 2012 at 11:39

GoogleCodeExporter commented 9 years ago
thehexfiles.net puts summary in a td.  I've changed the adapter to change that 
td to a div rather than including it.  See if the attached works better for you.

Alternatively, you could set keep_summary_html:false.  That would strip the 
HTML.

Original comment by retiefj...@gmail.com on 1 Nov 2012 at 3:28

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you very much, works perfectly fine! :) 

And sorry about that, I must have overlooked that keep_summary_html option in 
the original default.ini. 

Original comment by amelie...@web.de on 1 Nov 2012 at 6:58

GoogleCodeExporter commented 9 years ago
Okay.  I'll have that fix in the next version.

Original comment by retiefj...@gmail.com on 1 Nov 2012 at 8:56