|
@@ 354-362 (lines=9) @@
|
| 351 |
|
return "http://bato.to/comic/_/comics/-r".$title_parts[0]; |
| 352 |
|
} |
| 353 |
|
|
| 354 |
|
public function getChapterData(string $title_string, string $chapter) : array { |
| 355 |
|
//$title_string isn't used here. |
| 356 |
|
|
| 357 |
|
$chapter_parts = explode(':--:', $chapter); |
| 358 |
|
return [ |
| 359 |
|
'url' => "http://bato.to/reader#" . $chapter_parts[0], |
| 360 |
|
'number' => $chapter_parts[1] |
| 361 |
|
]; |
| 362 |
|
} |
| 363 |
|
|
| 364 |
|
public function getTitleData(string $title_url, bool $firstGet = FALSE) { |
| 365 |
|
$titleData = []; |
|
@@ 811-819 (lines=9) @@
|
| 808 |
|
return "http://kissmanga.com/Manga/{$title_url}"; |
| 809 |
|
} |
| 810 |
|
|
| 811 |
|
public function getChapterData(string $title_url, string $chapter) : array { |
| 812 |
|
$chapter_parts = explode(':--:', $chapter); |
| 813 |
|
|
| 814 |
|
return [ |
| 815 |
|
'url' => "http://kissmanga.com/Manga/{$title_url}/{$chapter_parts[0]}?id={$chapter_parts[1]}", |
| 816 |
|
//FIXME: KM has an extremely inconsistant chapter format which makes it difficult to parse. |
| 817 |
|
'number' => /*preg_replace('/--.*?$/', '', */$chapter_parts[0]/*)*/ |
| 818 |
|
]; |
| 819 |
|
} |
| 820 |
|
|
| 821 |
|
public function getTitleData(string $title_url, bool $firstGet = FALSE) { |
| 822 |
|
$titleData = []; |