From: Philipp Zabel Date: Tue, 23 Feb 2010 00:00:50 +0000 (+0100) Subject: Google backend: fix runtime and fsk parsing X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=775d9afedc075eb9134fc01e89e7b3f8eac1cdec;p=cinaest Google backend: fix runtime and fsk parsing --- diff --git a/src/backends/google/google-parser.vala b/src/backends/google/google-parser.vala index 6254416..87c7676 100644 --- a/src/backends/google/google-parser.vala +++ b/src/backends/google/google-parser.vala @@ -203,6 +203,7 @@ public class GoogleParser : Object { expect_tag ("/a"); expect_tag ("/div"); expect_tag ("span"); // class=info + string info_text = parse_text ().replace ("‎", ""); string[] runtime_and_fsk = {}; double rating = 0.0; var tag = parse_tag (); @@ -226,7 +227,7 @@ public class GoogleParser : Object { expect_tag ("img"); expect_tag ("/nobr"); expect_tag ("/nobr"); - runtime_and_fsk = parse_text ().replace ("‎", "").offset (3).split (" - "); + info_text = parse_text ().replace ("‎", "").offset (3); if (parse_tag () == "a") { // Trailer expect_tag ("/a"); @@ -237,6 +238,7 @@ public class GoogleParser : Object { } } } + runtime_and_fsk = info_text.split (" - "); expect_tag ("div"); // class=times var showtimes = parse_text ().replace (" ", ","); while (parse_tag () == "a") {