mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 06:16:15 +01:00
version 0.4.75
This commit is contained in:
parent
ff81ab5db7
commit
48d37fffc9
4 changed files with 5 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
''' E-book management software'''
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
__version__ = '0.4.74'
|
||||
__version__ = '0.4.75'
|
||||
__docformat__ = "epytext"
|
||||
__author__ = "Kovid Goyal <kovid at kovidgoyal.net>"
|
||||
__appname__ = 'calibre'
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
"""
|
||||
Provides abstraction for metadata reading.writing from a variety of ebook formats.
|
||||
"""
|
||||
import os, mimetypes
|
||||
import os, mimetypes, sys
|
||||
from urllib import unquote, quote
|
||||
from urlparse import urlparse
|
||||
|
||||
|
|
@ -55,6 +55,8 @@ def __init__(self, href_or_path, basedir=os.getcwd(), is_path=True):
|
|||
path = href_or_path
|
||||
if not os.path.isabs(path):
|
||||
path = os.path.abspath(os.path.join(path, basedir))
|
||||
if isinstance(path, str):
|
||||
path = path.decode(sys.getfilesystemencoding())
|
||||
self.path = path
|
||||
else:
|
||||
url = urlparse(href_or_path)
|
||||
|
|
|
|||
|
|
@ -1421,7 +1421,6 @@ def export_to_dir(self, dir, indices, byauthor=False, single_dir=False,
|
|||
name = au + ' - ' + title if byauthor else title + ' - ' + au
|
||||
name += '_'+id
|
||||
base = dir if single_dir else tpath
|
||||
|
||||
mi = OPFCreator(base, self.get_metadata(idx, index_is_id=index_is_id))
|
||||
cover = self.cover(idx, index_is_id=index_is_id)
|
||||
if cover is not None:
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
from docutils.statemachine import ViewList
|
||||
from docutils import nodes
|
||||
|
||||
from genshi.template import OldTextTemplate
|
||||
from genshi.template import OldTextTemplate as TextTemplate
|
||||
sys.path.append(os.path.abspath('../../../'))
|
||||
from calibre.linux import entry_points
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue