fix not in check
This commit is contained in:
parent
42ea85cad9
commit
04d1a78791
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ class Post(object):
|
||||||
# rewrite relative img-srcs to full paths.
|
# rewrite relative img-srcs to full paths.
|
||||||
d = PyQuery(self.body)
|
d = PyQuery(self.body)
|
||||||
for img in d.find('img'):
|
for img in d.find('img'):
|
||||||
if not '/' in img.attrib['src']:
|
if '/' not in img.attrib['src']:
|
||||||
img.attrib['src'] = '{}{}/{}'.format(config.blogurl,
|
img.attrib['src'] = '{}{}/{}'.format(config.blogurl,
|
||||||
self.outputpath,
|
self.outputpath,
|
||||||
img.attrib['src'])
|
img.attrib['src'])
|
||||||
|
|
Reference in a new issue