diff --git a/mmdc_modules.py b/mmdc_modules.py index 3f49c9f..c685906 100644 --- a/mmdc_modules.py +++ b/mmdc_modules.py @@ -55,7 +55,7 @@ def mw_page_imgsurl(site, page, thumb): imgs = page.images() imgs = list(imgs) imgs_dict = { img.name:(img.imageinfo)['url'] for img in imgs if (img.imageinfo)['url'] != thumb } # exclude thumb - imgs_dict = { key.capitalize():value for key, value in imgs_dict.items()} + imgs_dict = { (key.capitalize()).replace(' ','_'):value for key, value in imgs_dict.items()} # capilatize image name, so it can be called later return imgs_dict