mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-05 19:11:50 +02:00
adapter_trekfanfictionnet: don't set numWords to *character* count.
This commit is contained in:
parent
8381dba465
commit
f32f830004
1 changed files with 3 additions and 2 deletions
|
|
@ -172,8 +172,9 @@ class TrekFanFictionNetSiteAdapter(BaseSiteAdapter):
|
|||
## Getting the number of words
|
||||
## I'm going to but using the entry-content that will be the same
|
||||
## as what is used to get the chapter later
|
||||
words = len(soup.find('div', {'class' : 'entry-content'}).get_text())
|
||||
self.story.setMetadata('numWords', words)
|
||||
### XXX - This is a *character* count, not word count--JM
|
||||
# words = len(soup.find('div', {'class' : 'entry-content'}).get_text())
|
||||
# self.story.setMetadata('numWords', words)
|
||||
|
||||
## That is all of the metadata for this site, and since we are using the
|
||||
## same page for the whole story, I'm going to save th soup to be used
|
||||
|
|
|
|||
Loading…
Reference in a new issue