Commit c00aa7c8 authored by mitshel's avatar mitshel
Browse files

Исправление sopds.cgi (Ошибка в выдаче файла epub - len(buf) заменил на len(str)

parent 2f66199c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5,3 +5,5 @@ py/ziptest.py
py/fb2parse.py
py/b64decode.py
py/*.log
fb2toepub/*
!fb2toepub/*.zip
+2 −2
Original line number Diff line number Diff line
@@ -82,8 +82,8 @@ splittitles = 300
#Если закомментировать эту опцию, либо конвертер не будет найден по указанному пути
#то скачать книги в формате EPUB предлагаться не будет
# Опция temp_dir указывает в каком каталоге создавать временные файлы во время преобразования fb2toepub
#fb2toepub=../fb2toepub/unix_dist/fb2toepub
#temp_dir=/tmp
fb2toepub=../fb2toepub/unix_dist/fb2toepub
temp_dir=/tmp

[site]
id=http://sopds.ru/

py/nohup.out

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line

Books added      :  0
Books skipped    :  5564
Books DB entries deleted :  0
Books in archives:  0
Archives scanned :  35
Archives skipped :  104
Bad archives     :  0
Time estimated: 0  hours,  5  minutes,  19  seconds.
+2 −2
Original line number Diff line number Diff line
@@ -527,9 +527,9 @@ elif type_value==93:
      str=fo.read()
      # HTTP Header
      enc_print('Content-Type:application/octet-stream; name="'+transname+'"')
      enc_print("Content-Disposition: attachment; filename="+transname+'.zip')
      enc_print("Content-Disposition: attachment; filename="+transname)
      enc_print('Content-Transfer-Encoding: binary')
      enc_print('Content-Length: %s'%len(buf))
      enc_print('Content-Length: %s'%len(str))
      enc_print()
      sys.stdout.buffer.write(str)
      fo.close()