fix download urls
parent
cc50067f3b
commit
74ce39baf2
|
@ -77,7 +77,7 @@ class XMLishFormatter (BaseFormatter.BaseFormatter):
|
|||
|
||||
# these are used as relative links
|
||||
if file_.generated and not file_.filetype.startswith ('cover.'):
|
||||
file_.filename = "ebooks/%d.%s" % (file_.id, file_.filetype)
|
||||
file_.filename = "ebooks/%d.%s" % (dc.project_gutenberg_id, file_.filetype)
|
||||
if m in HANDOVER_TYPES:
|
||||
file_.filename = file_.filename + '?' + urllib.parse.urlencode (
|
||||
{ 'session_id': str (cherrypy.session.id) } )
|
||||
|
|
Loading…
Reference in New Issue