aboutsummaryrefslogtreecommitdiff
path: root/src/content.rs
diff options
context:
space:
mode:
authorIvan Tham <[email protected]>2018-08-08 03:31:14 +0100
committerIvan Tham <[email protected]>2018-08-08 03:31:14 +0100
commitf0cb4fafbe4f3f1ecb23b4dd9d7357a269c1317e (patch)
tree3ad5bff53580fb35f11b5b55fc54ed550785cb0f /src/content.rs
parenta5c6f2afbe16d0328750f83db66b93b89111313b (diff)
Replace title in content
Diffstat (limited to 'src/content.rs')
-rw-r--r--src/content.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.rs b/src/content.rs
index 0f81149..30d8f22 100644
--- a/src/content.rs
+++ b/src/content.rs
@@ -21,7 +21,7 @@ pub fn query_url_gen(title: &str) -> String {
21 url.push_str("prop=extracts%7Clinks&"); 21 url.push_str("prop=extracts%7Clinks&");
22 url.push_str("indexpageids=1&"); 22 url.push_str("indexpageids=1&");
23 url.push_str("titles="); 23 url.push_str("titles=");
24 url.push_str(&urlencoding::encode(title)); 24 url.push_str(&urlencoding::encode(&title.replace(" ", "_")));
25 url.push_str("&"); 25 url.push_str("&");
26 url.push_str("redirects=1&"); 26 url.push_str("redirects=1&");
27 url.push_str("pllimit=100&"); 27 url.push_str("pllimit=100&");