mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-21 16:23:58 +01:00
Final extended char fix for adapter_wwwlushstoriescom--hopefully.
This commit is contained in:
parent
91e39db0ce
commit
c25f34930c
1 changed files with 4 additions and 4 deletions
|
|
@ -63,10 +63,10 @@ class WWWLushStoriesComAdapter(BaseSiteAdapter): # XXX
|
|||
try:
|
||||
storyId = urllib2.quote(storyId)
|
||||
except KeyError:
|
||||
## string from calibre on windows *isn't* utf8, but a
|
||||
## latin1 of some kind. This encode would be better
|
||||
## done somewhere where the code type can be known.
|
||||
storyId = urllib2.quote(storyId.encode("Windows-1252"))
|
||||
## string from calibre is utf8, but lushstories.com
|
||||
## expects extended chars to be in latin1 / iso-8859-1
|
||||
## rather than utf8.
|
||||
storyId = urllib2.quote(storyId.encode("iso-8859-1"))
|
||||
|
||||
self.story.setMetadata('storyId',storyId)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue