Couple minor fixes.

This commit is contained in:
Jim Miller 2013-06-18 13:53:21 -05:00
parent 83b48d15d8
commit 7f47100db4
2 changed files with 2 additions and 2 deletions

View file

@ -15,8 +15,8 @@ from PyQt4.Qt import (QDialog, QWidget, QVBoxLayout, QHBoxLayout, QLabel,
QCheckBox, QPushButton, QTabWidget, QVariant, QScrollArea,
QDialogButtonBox )
from calibre.utils.config import JSONConfig
from calibre.gui2.ui import get_gui
from calibre.gui2 import dynamic, info_dialog
from calibre_plugins.fanfictiondownloader_plugin.prefs import prefs, PREFS_NAMESPACE
from calibre_plugins.fanfictiondownloader_plugin.dialogs \

View file

@ -1668,7 +1668,7 @@ class FanFictionDownLoaderPlugin(InterfaceAction):
# identifiers have :->| in uri.
# print("uri from ident uri:%s"%identifiers['uri'].replace('|',':'))
return identifiers['uri'].replace('|',':')
elif path.lower().endswith('.epub'):
elif path and path.lower().endswith('.epub'):
existingepub = path
## only epub has URL in it--at least where I can easily find it.