40 |
|
} |
41 |
|
} |
42 |
|
|
43 |
< |
if (siteIndex != "" && siteMap != "") |
43 |
> |
if (!siteIndex.empty() && !siteMap.empty()) |
44 |
|
{ |
45 |
|
XMLPlatformUtils::Initialize(); |
46 |
|
XPathEvaluator::initialize(); |
161 |
|
if (page == matcher(string("^Douglas\\sThrift's\\sWebsite\\s\\|\\sDou") |
162 |
|
+ "glas\\sThrift's\\sBlog:\\s(.+)$")) |
163 |
|
{ |
164 |
< |
if (Matcher("^\\w+\\s\\d\\d\\d\\d\\sArchives$") == matcher[1]) |
164 |
> |
if (Matcher("^\\w+\\s\\d{4}\\sArchives$") == matcher[1]) |
165 |
|
{ |
166 |
|
page.setTitle(matcher[1]); |
167 |
|
|
204 |
|
|
205 |
|
pages[index] = page; |
206 |
|
|
207 |
+ |
cout << "Updated: " << page.getUrl() << '\n'; |
208 |
+ |
|
209 |
|
return true; |
210 |
|
} |
211 |
|
else if (matcher('^' + pages[index].getPath()) == page) |
269 |
|
for (multimap<string, Page>::iterator itor(newPages.lower_bound(childOf)); |
270 |
|
itor != newPages.upper_bound(childOf); itor++) |
271 |
|
{ |
272 |
+ |
cout << "Added: " << itor->second.getUrl() << '\n'; |
273 |
+ |
|
274 |
|
pages.push_back(itor->second); |
275 |
|
} |
276 |
|
|