Fix downloading

This commit is contained in:
Vladimir Panteleev 2010-06-16 00:56:46 +03:00
parent 6f61ebd302
commit 5d1e2e20e5
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ int main(string[] args)
if (name.length>=2 && name[0]=='"' && name[$-1]=='"')
name = name[1..$-1]; // strip quotes
if (spawnvp(P_WAIT, "curl", ["curl", "-d", "", "http://en.wikipedia.org/w/index.php?title=Special:Export&pages=" ~ name, "-o", "history.xml"]))
if (spawnvp(P_WAIT, "curl", ["curl", "-d", "\"\"", "http://en.wikipedia.org/w/index.php?title=Special:Export&pages=" ~ name, "-o", "history.xml"]))
throw new Exception("curl error");
auto xml = new XmlDocument(new File("history.xml"));