mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:34:27 +02:00
Error message for direct URLs.
This commit is contained in:
parent
aaf21faf2a
commit
42d5697a79
1 changed files with 2 additions and 0 deletions
|
|
@ -1166,6 +1166,8 @@ def cleanup(self):
|
|||
_file.__del__()
|
||||
|
||||
def process_file(path, options):
|
||||
if re.match('http://|https://', path):
|
||||
raise ConversionError, 'You have to save the website %s as an html file first and then run html2lrf on it.'%(path,)
|
||||
cwd = os.getcwd()
|
||||
dirpath = None
|
||||
default_title = filename_to_utf8(os.path.splitext(os.path.basename(path))[0])
|
||||
|
|
|
|||
Loading…
Reference in a new issue