fix download urls

relative-links
eric 2019-09-09 13:59:59 -04:00
parent cc50067f3b
commit 74ce39baf2
1 changed files with 1 additions and 1 deletions

View File

@ -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) } )