Hi Rai,
When pulling sites from fanfiction.net, is there any chance you could include the word count and pairing?
Thank you again for the super terrific program and all your hard work.
~Rach
Word count & Pairing
Re: Word count & Pairing
Hi,
the problem with this idea is that I don't have to think about all the other archives too.
It's no problem to include this for ff.net, but then we'd get a line in the summary for the other archives with "Word Count: unknown; Pairing: Unknown"
I think a lot of people wouldn't like this.
Rai
the problem with this idea is that I don't have to think about all the other archives too.
It's no problem to include this for ff.net, but then we'd get a line in the summary for the other archives with "Word Count: unknown; Pairing: Unknown"
I think a lot of people wouldn't like this.
Rai
Read before you report a bug: http://fanfictiondownloader.net/forum/v ... ?f=5&t=175
Re: Word count & Pairing
If the info resolves to unkown just remove the whole line, that should not be to hard I think if you process the the lines of the reulting story again. Once you reach the first chapter you can just copy the lines without checking, but every line containing "unkown_ffdl" can be deleted. No user of the ff_downloader would ever see such a line and it would work with other infos from other sites just as well.
Taku
Taku
-
- Posts: 70
- Joined: Wed 23. Mar 2011, 16:19
Re: Word count & Pairing
You don't realize what that would entail in a C-based language, do you?
Telling the program to ignore code in certain circumstances is certainly doable, but it's bound to return more than a few argument errors.
That's why I myself stick with VB.net and .asp Ok, I'm done now.
Telling the program to ignore code in certain circumstances is certainly doable, but it's bound to return more than a few argument errors.
That's why I myself stick with VB.net and .asp Ok, I'm done now.
Re: Word count & Pairing
I think there was something lost here: first some pseudo code for the algorithm:RedneckDrow wrote: You don't realize what that would entail in a C-based language, do you?
Code: Select all
do
string line = readline()
if line contains "unkown_ffdl" then next
writeline(line)
while there are lines remaining
I suspect that each site has either a secific code section or some set of parsing information (e.g. list of regex). In that case the varibles can be given a default value, either before hand or if the parser comes up with nothing. At no place there would be the effect you described.
Taku