diff options
author | jan <jan@ruken.pw> | 2016-10-09 09:28:08 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2016-10-09 09:28:08 (UTC) |
commit | 6d7a31be9c6fd413d407334c40d02c008b7334ec (patch) | |
tree | b9e73e5651d2dc1d72833875ab37469b7f2c1b53 /src/pre_process.rs | |
parent | 54c2cb1e484e09b4fcfe236aff70c01bf3bbaae0 (diff) |
fixierung
Diffstat (limited to 'src/pre_process.rs')
-rw-r--r-- | src/pre_process.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pre_process.rs b/src/pre_process.rs index 877ddc3..c68528f 100644 --- a/src/pre_process.rs +++ b/src/pre_process.rs | |||
@@ -1,15 +1,13 @@ | |||
1 | pub fn strip_irrelevant_content(s: &str) -> String { | 1 | pub fn strip_irrelevant_content(s: &str) -> String { |
2 | let mut retn = ""; | 2 | let mut retn = ""; |
3 | match s.find(r#"<div class=profile id=profile>"#) { | 3 | match s.find(r#"<A href="watchdontwatch.php">"#) { |
4 | Some(pos) => retn = &s[pos..], | 4 | Some(pos) => retn = &s[pos..], |
5 | None => (), | 5 | None => (), |
6 | }; | 6 | }; |
7 | 7 | ||
8 | match s.find(r#"<INPUT style="font-size: 2em;" TYPE=SUBMIT NAME="votes" VALUE="Cast Votes">"#) { | 8 | match s.find(r#"<H3>Characters"#) { |
9 | Some(pos) => retn = &s[..pos], | 9 | Some(pos) => retn = &s[..pos], |
10 | None => (), | 10 | None => (), |
11 | }; | 11 | }; |
12 | return retn.into(); | 12 | return retn.into(); |
13 | } | 13 | } |
14 | |||
15 | |||