diff --git a/include/check.php b/include/check.php index 4d08fa9..3b29332 100644 --- a/include/check.php +++ b/include/check.php @@ -191,9 +191,11 @@ return false; break; case 'ripple': - $this->Playcount = str_replace(',', NULL, $this->Parser->splits($this->data_profile, '', '', 6 + ($this->mode * 9))); - $this->Performance = str_replace(',', NULL, $this->Parser->splits($this->data_profile, '', '', 3 + ($this->mode * 9))); - $this->Rank = str_replace('#', NULL, $this->Parser->splits($this->data_profile, '', '', 1 + ($this->mode * 9))); + $this->Rank = str_replace('#', NULL, $this->Parser->splits($this->data_profile, '

mode != 0) ? ' hidden' : NULL) . '>', '

', 1)); + $checkrank = (strtolower($this->Rank) == 'unknown') ? 0 : 2; + if ($checkrank == 0) $this->Rank = 0; + $this->Playcount = str_replace(',', NULL, $this->Parser->splits($this->data_profile, '', '', $checkrank + 4 + ($this->mode * ($checkrank + 7)))); + $this->Performance = str_replace(',', NULL, $this->Parser->splits($this->data_profile, '', '', $checkrank + 1 + ($this->mode * ($checkrank + 7)))); break; default: throw new \Exception($this->server . ' is not supported.');