|
|
|
@ -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')
|
|
|
|
|