View Single Post
Old 02-03-2014, 07:55 AM   #2393
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JimmXinu View Post
davidfor wrote the adapter for that site, so I'd like to hear from him before doing a permanent solution.

I have attached a version that includes that content, but it might include other stuff that isn't wanted, too.
I have finally had a chance to finish this and test it. The page retrieval code has been rewritten. The problems it fixes include:

- Headings within the story where being stripped
- For multi-page stories, the second page and further were in a div inside the main story div. This worked but it looked wrong.
- Spans used for styles in the story were stripped along with the text they containted.
- Any br tags inside the story were also stripped.

This mainly meant some structure was being lost. The spans were probably the worst bit as if they were used, they tended to be used a lot.

I haven't made any attempt to fix the problem reported on the weekend where there was a "</div>" in the wrong place.

The finestories.com plugin probably should have the same changes, but it will be a few days before I can look at it.
Attached Files
File Type: zip adapter_storiesonlinenet.zip (4.9 KB, 151 views)
davidfor is offline