X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=reindex_blog.py;h=ab257d55848b0cfadd9b782752365c0dda5f902a;hb=a3d7063368f527f11c2ec2a4a09d79720cdc06aa;hp=c2e16ce32c35029bb31d05f382f46e4d65e55617;hpb=f85b54d41b553cd6d9cdc43a2b16c2675bb99216;p=phdru.name%2Fphdru.name.git 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/"