mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Error message for direct URLs.
This commit is contained in:
parent
aaf21faf2a
commit
42d5697a79
@ -1166,6 +1166,8 @@ class HTMLConverter(object):
|
||||
_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…
x
Reference in New Issue
Block a user