From b0f6761ec25c37779fc4ba3a8b4ff1cda0a401ef Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 4 Aug 2017 19:39:11 +0300 Subject: [PATCH] Fix(blog): Fix base URL for Russian blog --- reindex_blog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reindex_blog.py b/reindex_blog.py index c2e16ce..ab257d5 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -525,7 +525,9 @@ from rss_20 import rss_20 from news import NewsItem if blog_root: - baseURL = "http://phdru.name/%s/" % blog_root + blog_root_url = blog_root[ + blog_root.find('/htdocs/phdru.name/') + len('/htdocs/phdru.name/'):] + baseURL = "http://phdru.name/%s/" % blog_root_url else: baseURL = "http://phdru.name/" -- 2.39.5