36 |
|
} |
37 |
|
} |
38 |
|
|
39 |
< |
if (siteIndex != "" && siteMap != "") |
39 |
> |
if (!siteIndex.empty() && !siteMap.empty()) |
40 |
|
{ |
41 |
|
SiteMapper mapper(siteIndex, siteMap); |
42 |
|
} |
105 |
|
if (page == matcher(string("^Douglas\\sThrift's\\sWebsite\\s\\|\\sDou") |
106 |
|
+ "glas\\sThrift's\\sBlog:\\s(.+)$")) |
107 |
|
{ |
108 |
< |
if (Matcher("^\\w+\\s\\d\\d\\d\\d\\sArchives$") == matcher[1]) |
108 |
> |
if (Matcher("^\\w+\\s\\d{4}\\sArchives$") == matcher[1]) |
109 |
|
{ |
110 |
|
page.setTitle(matcher[1]); |
111 |
|
|
143 |
|
|
144 |
|
pages[index] = page; |
145 |
|
|
146 |
+ |
cout << "Updated: " << page.getUrl() << '\n'; |
147 |
+ |
|
148 |
|
return true; |
149 |
|
} |
150 |
|
else if (matcher('^' + pages[index].getPath()) == page) |
208 |
|
for (multimap<string, Page>::iterator itor(newPages.lower_bound(childOf)); |
209 |
|
itor != newPages.upper_bound(childOf); itor++) |
210 |
|
{ |
211 |
+ |
cout << "Added: " << itor->second.getUrl() << '\n'; |
212 |
+ |
|
213 |
|
pages.push_back(itor->second); |
214 |
|
} |
215 |
|
|