mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Easy access to jsbrowser
This commit is contained in:
parent
8eca0cd853
commit
d33609785a
@ -408,6 +408,10 @@ def browser(honor_time=True, max_time=2, mobile_browser=False, user_agent=None,
|
||||
|
||||
return opener
|
||||
|
||||
def jsbrowser(*args, **kwargs):
|
||||
from calibre.web.jsbrowser.browser import Browser
|
||||
return Browser(*args, **kwargs)
|
||||
|
||||
def fit_image(width, height, pwidth, pheight):
|
||||
'''
|
||||
Fit image in box of width pwidth and height pheight.
|
||||
|
Loading…
x
Reference in New Issue
Block a user