View Single Post
Old 03-15-2013, 08:14 PM   #1238
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,012
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by seabream View Post
When the number of reviews (or favs or follows) is shorter than four digits, this works fine, when there are more, I get : “invalid literal for int() with base 10: ‘1,276’” where 1,276 is the number of reviews in question.
FFDL doesn't treat favs, etc as numbers--it treats them as strings. So when calibre calls int('456') it works, but not on int('1,234').

I suppose I should change those to a number--or at least strip non-digits--for users who want to use non-US-en number formatting.

In the mean time, you could use replace_metadata to strip ',' from those entries.

Quote:
Originally Posted by seabream View Post
2) With round brackets in fandoms and character names on AO3, I haven’t been able to get anything to work successfully. I’ve tried \(, [(] and even .* for the segment containing the brackets e.g.:
characters=>(^Henry.*$)=>Henry Mills&&category=>Once Upon a Time.*
to try to get character and variants: “Henry (Once Upon a Time)” on stories in fandom: “Once Upon a Time (TV)”
In all cases, it’s as though the line doesn’t exist.
Here’s a sample story link: http://archiveofourown.org/works/545044
I cannot duplicate this problem. Parans '()' in both the character and category work fine for me. Unless there's a difference between Mac and Windows, I'd suspect you're somehow not applying, maybe? Missing space at the start of a line or something?

I don't even understand the question yet for your part 3. I'll need more time to read that again a couple times.
JimmXinu is offline