X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fbackends%2Fgoogle%2Fgoogle-parser.vala;h=87c767687457c4960922b76cdf5b454abfa4e026;hb=775d9afedc075eb9134fc01e89e7b3f8eac1cdec;hp=625441699a1906c746e7ccda2a3e9969cbfd0615;hpb=204b335f74d7ee48c46b15fde50df252331787c6;p=cinaest 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") {