View Single Post
Old 12-02-2009, 04:22 AM   #82
dpierron
calibre2opds guru
dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.
 
dpierron's Avatar
 
Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
Quote:
Originally Posted by vern View Post
Until calibre or stanza straighten out the urlencode issues, here's my simple script to fix the urls on the stanza.xml file:
http://pastebin.com/m1dc17a20

to run, do:
# python thiscode.py path/to/stanza.xml

This just replaces the spaces and commas with url-encodes equivalents (but not the parenthesis, since stanza apparently doesn't like that)
Great, thank you !

Beau, you must run the script after the stanza.xml is generated...
dpierron is offline   Reply With Quote