mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Fix #682
This commit is contained in:
parent
c3fecac479
commit
94e8b22b85
@ -62,9 +62,9 @@ def compile_recipe(src):
|
||||
enc = match.group(1) if match else 'utf-8'
|
||||
src = src.decode(enc)
|
||||
f = open(temp, 'wb')
|
||||
src = '# coding=utf-8\n' + src
|
||||
src = 'from %s.web.feeds.news import BasicNewsRecipe, AutomaticNewsRecipe\n'%__appname__ + src
|
||||
src = 'from %s.ebooks.lrf.web.profiles import DefaultProfile, FullContentProfile\n'%__appname__ + src
|
||||
src = '# coding: utf-8\n' + src
|
||||
f.write(src.replace('from libprs500', 'from calibre').encode('utf-8'))
|
||||
f.close()
|
||||
module = imp.find_module(temp.namebase, [temp.dirname()])
|
||||
|
Loading…
x
Reference in New Issue
Block a user