View Single Post
Old 09-09-2012, 12:42 PM   #801
Dylan Tomorrow
Connoisseur
Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.
 
Posts: 62
Karma: 640495
Join Date: Jul 2012
Location: Germany
Device: Kindle Touch, Android smartphone w/ FBReader
Post Debug info

Quote:
Originally Posted by JimmXinu View Post
It's working fine for me. I tried it on Ubuntu 12.04.1 LTS with calibre 0.8.68 and FFDL 1.6.8. Although it is a story that requires you to answer that yes, you're an adult.

Giving multiple chapter URLs to the same story won't do anything useful. Either they'll be ignored or they'll all normalize to the same story URL.

You can get more debug output by running calibre from command line as 'calibre-debug -g'.
Thanks! Alright, this is the log:

Code:
calibre-debug -g
Starting up...
Key u'G' for shortcut Bücher erwerben is already used by An Reader übertragen, ignoring
Key u'G' for shortcut Bücher erwerben is already used by An Reader übertragen, ignoring
Started up in 14.82 seconds with 283 books
url:(http://www.fictionalley.org/authors/barb/HPATPS.html) begin:(None) end:(None)
FanFictionDownLoader v1.6.8
url:http://www.fictionalley.org/authors/barb/HPATPS.html
from URL(http://www.fictionalley.org/authors/barb/HPATPS.html)
title:Harry Potter and the Psychic Serpent
outfile:/tmp/calibre_0.8.68_tmp_SPpmqW/fanfictiondownloader_F_Nxtn/new-None-Bqbvw4.mobi
Fetched metadata for 1 of 1
Worker Launch took: 2.95985603333
Job: 1 Download FanFiction Book finished
Download FanFiction Book
	FanFictionDownLoader v1.6.8
	Adding jobs for URLs:
	http://www.fictionalley.org/authors/barb/HPATPS.html
	Logfile for book ID None (Harry Potter and the Psychic Serpent)
	url:(http://www.fictionalley.org/authors/barb/HPATPS.html) id:(None)
	write to /tmp/calibre_0.8.68_tmp_SPpmqW/fanfictiondownloader_F_Nxtn/new-None-Bqbvw4.mobi
	Exception: {u'comment': u"Failed to parse image_max_size from personal.ini:['']\nException: invalid literal for int() with base 10: ''", u'status': u'Error', u'author_sort': [u'Barb'], u'pubdate': datetime.datetime(2001, 7, 15, 0, 0, tzinfo=SafeLocalTimeZone()), u'series': None, u'is_adult': False, u'added': False, u'end': None, u'author': [u'Barb'], u'comments': u"In Harry's fifth year he gets a snake with the Sight. Hermione's torn between Ron and Harry, who's torn between her and Ginny, who's torn between him and Draco Malfoy, who's torn between her and loyalty to his father. Plus: a Prophecy, Animagus training, a Dueling Club, Snape's Penseive, kilts, giants, house elf liberation and more!", u'calibre_id': None, u'username': 'NoneGiven', u'begin': None, u'good': False, u'tags': [u'Romance', u'FanFiction', u'Harry Potter'], u'timestamp': datetime.datetime(2012, 9, 9, 18, 27, 51, 363638, tzinfo=SafeLocalTimeZone()), u'outfile': u'/tmp/calibre_0.8.68_tmp_SPpmqW/fanfictiondownloader_F_Nxtn/new-None-Bqbvw4.mobi', u'password': '', u'icon': u'dialog_error.png', u'publisher': u'www.fictionalley.org', u'url': u'http://www.fictionalley.org/authors/barb/HPATPS.html', u'all_metadata': {'rating': u'R', 'numWords': u'341,236', 'site': u'www.fictionalley.org', 'datePublished': u'2001-07-15', 'authorHTML': u"<a class='authorlink' href='http://www.fictionalley.org/authors/barb/'>Barb</a>", 'storyUrl': u'http://www.fictionalley.org/authors/barb/HPATPS.html', 'storyId': u'HPATPS', 'category': u'Harry Potter', 'formatext': u'.mobi', 'author': u'Barb', 'ships': u'', 'formatname': u'mobi', 'version': u'4.4', 'dateUpdated': u'2001-09-04', 'numChapters': u'33', 'description': u"In Harry's fifth year he gets a snake with the Sight. Hermione's torn between Ron and Harry, who's torn between her and Ginny, who's torn between him and Draco Malfoy, who's torn between her and loyalty to his father. Plus: a Prophecy, Animagus training, a Dueling Club, Snape's Penseive, kilts, giants, house elf liberation and more!", 'warnings': u'', 'dateCreated': u'2012-09-09 18:27:51', 'authorId': u'barb', 'authorUrl': u'http://www.fictionalley.org/authors/barb/', 'characters': u'', 'genre': u'Romance', 'title': u'Harry Potter and the Psychic Serpent', 'siteabbrev': u'fa', 'extratags': u'FanFiction'}, u'title': u'Harry Potter and the Psychic Serpent'}:Failed to parse image_max_size from personal.ini:['']
	Exception: invalid literal for int() with base 10: ''
	Traceback (most recent call last):
	  File "calibre_plugins.fanfictiondownloader_plugin.jobs", line 151, in do_download_for_worker
	  File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.writers.base_writer", line 230, in writeStory
	  File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.base_adapter", line 209, in getStory
	  File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.adapter_fictionalleyorg", line 226, in getChapterText
	  File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.base_adapter", line 315, in utf8FromSoup
	  File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.story", line 389, in addImgUrl
	FailedToDownload: Failed to parse image_max_size from personal.ini:['']
	Exception: invalid literal for int() with base 10: ''
	
	Successfully downloaded:
	
	Unsuccessful:
	Harry Potter and the Psychic Serpent
My personal.ini:
Quote:
## This is an example of what your personal configuration might look
## like.

[defaults]
## Some sites also require the user to confirm they are adult for
## adult content. In commandline version, this should go in your
## personal.ini, not defaults.ini.
is_adult:true

## include images from img tags in the body and summary of
## stories. Images will be converted to jpg for size if possible.
include_images:true

## If not set, the summary will have all html stripped for safety.
## Both this and include_images must be true to get images in the
## summary.
#keep_summary_html:true

## If set, the first image found will be made the cover image. If
## keep_summary_html is true, any images in summary will be before any
## in chapters.
#make_firstimage_cover:true

## Resize images down to width, height, preserving aspect ratio.
## Nook size, with margin.
#image_max_size: 580, 725

## Change image to grayscale, if graphics library allows, to save
## space.
#grayscale_images: false

## Try to collect series name and number of this story in series.
## Some sites (ab)use 'series' for reading lists and personal
## collections. This lets us turn it on and off by site without
## keeping a lengthy titlepage_entries per site and prevents it
## updating in the plugin.
## Turn off in [defaults] or [overrides] to prevent all sites from
## updating series column.
## default is true
#collect_series: false

## Most common, I expect will be using this to save username/passwords
## for different sites.
[www.twilighted.net]
#username:YourPenname
#password:YourPassword
## default is false
#collect_series: true

[www.ficwad.com]
#username:YourUsername
#password:YourPassword

[www.twiwrite.net]
#username:YourName
#password:yourpassword
## default is false
#collect_series: true

[www.adastrafanfic.com]
## Some sites do not require a login, but do require the user to
## confirm they are adult for adult content.
#is_adult:true

[www.archiveofourown.org]
collect_series: true
## added myself


[www.thewriterscoffeeshop.com]
#username:YourName
#password:yourpassword
#is_adult:true
## default is false
#collect_series: true

[www.fictionalley.org]
#is_adult:true

[www.harrypotterfanfiction.com]
#is_adult:true

[www.fimfiction.net]
#is_adult:true
#fail_on_password: false

[www.tthfanfic.org]
#is_adult:true
## tth is a little unusual--it doesn't require user/pass, but the site
## keeps track of which chapters you've read and won't send another
## update until it thinks you're up to date. This way, on download,
## it thinks you're up to date.
#username:YourName
#password:yourpassword


## This section will override anything in the system defaults or other
## sections here.
[overrides]
## default varies by site. Set true here to force all sites to
## collect series.
#collect_series: true
Huh, is there some syntax error I introduced into the personal.ini error I'm missing? I can't see anything wrong with the image_max_size entry. I hope I am not missing the blatantly obvious here .
Dylan Tomorrow is offline