View Single Post
Old 04-26-2014, 02:35 PM   #2597
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,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Firedancer885 View Post
Code:
Traceback (most recent call last):
  File "downloader.py", line 317, in <module>
    main(sys.argv[1:])
  File "downloader.py", line 248, in main
    adapter.getStoryMetadataOnly()
  File "/fanficdownloadercli/fanficdownloader/adapters/base_adapter.py", line 261, in getStoryMetadataOnly
    self.story.setMetadata('dateUpdated',self.story.getMetadataRaw('datePublished'))
  File "/fanficdownloadercli/fanficdownloader/story.py", line 269, in setMetadata
    self.addToList('lastupdate',value.strftime("Last Update Year/Month: %Y/%m"))
AttributeError: 'NoneType' object has no attribute 'strftime'
Thank you for the cli suggestion I used the Imagine.e-fic adapter as base for the new adapter. What do I need to change?
Work through it by visiting each of the stack trace areas. This time, start from the bottom.
  1. story.py, line 269 - When setting dateUpdated, it's trying to strftime on a None.
  2. base_adapter.py, line 26 - When dateUpdated isn't set, it tries to set it to the same value as datePublished.
So that tells you that your adapter is setting datePublished to None, or not setting it.
JimmXinu is offline