images are https

master
cookieMonster 9 years ago
parent 28cfd03e0a
commit 61be228843

@ -78,7 +78,8 @@ def create_page(memberpages, mode):
src = (('File:'+img_src).capitalize()).decode('utf-8')
if src in articledict['Imgs'].keys(): #full-url
url = articledict['Imgs'][src]
url = (articledict['Imgs'][src]).replace('http', 'https')
print url
img.set('src', url)
@ -106,7 +107,7 @@ def create_index(indexdict):
title=indexdict[key]['Title'],#.decode('utf-8'),
creator=indexdict[key]['Creator'],
date=indexdict[key]['Date'],
thumbnail=indexdict[key]['Thumbnail']
thumbnail=(indexdict[key]['Thumbnail']).replace('http', 'https')
)
print '----', indexdict[key]['Title'],indexdict[key]['Path']
write_html_file(index_tree, 'web/2015.html')

@ -17,7 +17,7 @@
<div id="sidebarInner">
<div id="sideBarDesc">
<div id="sideBarDescInfo">
<a href="../index.html" class="hoverBackA"><img class="template" src="../img/arrowBack.svg"></a><p>Tempted by Tomorrow</p>
<a href="../2015.html" class="hoverBackA"><img class="template" src="../img/arrowBack.svg"></a><p>Tempted by Tomorrow</p>
</div>
<div id="sideBarDescInner">

Loading…
Cancel
Save