FFN update broke DeFFNetIzer again

95 views
Skip to first unread message

grenouille

unread,
Mar 20, 2013, 1:58:26 PM3/20/13
to def...@googlegroups.com
FFN's latest update seems to have prevented DeFFNetIzer from finding the story title. Also, as a result, the chapters simply are saved in the root of the assigned save directory. As a workaround, you can manually enter a directory name, but the story title still doesn't appear on the index or chapter pages as designed.

Just thought I'd pass it along.

Mike

Chad Peterson

unread,
Mar 20, 2013, 9:51:48 PM3/20/13
to def...@googlegroups.com
A new version has been released to fix this.

Thanks,
Chad

grenouille

unread,
Mar 20, 2013, 9:55:11 PM3/20/13
to def...@googlegroups.com
You're a good man, Chad. Thanks for all your hard work.

Mike


At 06:51 PM 3/20/2013, you wrote:

A new version has been released to fix this.

Thanks,
Chad

The worst that can happen under monarchy is rule by a single imbecile, but democracy often means the rule by an assembly of three or four hundred imbeciles.   ~Robert Anton Wilson

Chad Peterson

unread,
Mar 20, 2013, 10:03:03 PM3/20/13
to def...@googlegroups.com
Not a problem.

We taking bets as to how long this fix lasts? I have a feeling that they are going to change something again soon...  :(

grenouille

unread,
Mar 20, 2013, 10:31:19 PM3/20/13
to def...@googlegroups.com
Sucker bet *cheeky grin*.

Mike
--
You received this message because you are subscribed to the Google Groups "DeFFNetIzer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deffnet+u...@googlegroups.com.
To post to this group, send email to def...@googlegroups.com.
Visit this group at http://groups.google.com/group/deffnet?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ronnie McMains

unread,
Mar 21, 2013, 3:42:22 AM3/21/13
to def...@googlegroups.com
It's putting the entire contents of the <title> field as the fic title. That includes 'Chapter 1', any chapter title the author gave it in the ff.net chapter menu, the category, and '| Fanfiction'. And then uses that as the directory name as well.

Ronnie McMains

unread,
Mar 21, 2013, 7:00:56 AM3/21/13
to def...@googlegroups.com
On 3/21/2013 2:42 AM, Ronnie McMains wrote:
> It's putting the entire contents of the <title> field as the fic
> title. That includes 'Chapter 1', any chapter title the author gave it
> in the ff.net chapter menu, the category, and '| Fanfiction'. And then
> uses that as the directory name as well.
Correction: It's only doing it on some stories. Other stories it's just
using the story title.

These two stories work correctly.
http://www.fanfiction.net/s/8725571/1/Champions-of-the-Founders
http://www.fanfiction.net/s/8986877/1/Godric-s-Blade

These stories have the problem I detailed in my earlier message.
http://www.fanfiction.net/s/6791390/1/Harry-Potter-Magical-Archaeologist
http://www.fanfiction.net/s/6740104/1/Phoenix-From-The-Ashes

I unfortunately have no idea why either happens.

--
Shepard: Take care of yourself, Veetor. Not everyone could go through what you did and come out sane.
Veetor: I know. I didn't.
--Mass Effect 2

Larissa Reis

unread,
Mar 21, 2013, 10:01:02 AM3/21/13
to def...@googlegroups.com
That's because the code that removes the extra stuff is hardcoded to work only for harry potter fanfictions for some reason. The coder probably forgot to generalize. 

The solution would be either use an adequate regex to remove the extra text from the title html tag, or keep using the title from the story info table. The later was what I did:

        content = unicode(soup.first('body'))
        titleStart = content.find('<b>') + len('<b>')
        titleEnd = content[titleStart:titleStart+100].find('</b>')
        title = content[titleStart:titleStart + titleEnd]


2013/3/21 Ronnie McMains <ronnie....@gmail.com>
--
You received this message because you are subscribed to the Google Groups "DeFFNetIzer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deffnet+unsubscribe@googlegroups.com.

To post to this group, send email to def...@googlegroups.com.
Visit this group at http://groups.google.com/group/deffnet?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.





--
Larissa Reis

Chad Peterson

unread,
Mar 21, 2013, 10:07:54 AM3/21/13
to def...@googlegroups.com
And that's exactly what I did.  I'll put out another update to fix it later today.

Thanks,
Chad

Bart S

unread,
Mar 21, 2013, 11:55:21 AM3/21/13
to def...@googlegroups.com
Thanks Chad! Don't know what most of us would do without you. Probably wallow in misery is my guess. ;)

Ronnie McMains

unread,
Mar 23, 2013, 4:56:38 AM3/23/13
to def...@googlegroups.com
Just tried downloading this story:
http://www.fanfiction.net/s/8045114/1/A-Marauder-s-Plan
and got a long-form title. Possibly because of the way the author has his chapters titled: The first chapter is entitled 'Initiating Operation Pronglet: Chapter 1' and De-FF.Net-izer gave the title as 'A Marauder's Plan Initiating Operation Pronglet:' Not sure if there's any way you can get around that.
-- 
"I am very smart. I went to the best MedAcad on Osiris. Top three percent of my class. Finished my internship in eight months. Gifted is the term. So when I tell you my little sister makes me look like an idiot child, I want you to understand my full meaning."
--Simon Tam
Reply all
Reply to author
Forward
0 new messages