|
@@ 462-470 (lines=9) @@
|
| 459 |
|
return "http://bato.to/comic/_/comics/-r".$title_parts[0]; |
| 460 |
|
} |
| 461 |
|
|
| 462 |
|
public function getChapterData(string $title_string, string $chapter) : array { |
| 463 |
|
//$title_string isn't used here. |
| 464 |
|
|
| 465 |
|
$chapter_parts = explode(':--:', $chapter); |
| 466 |
|
return [ |
| 467 |
|
'url' => "http://bato.to/reader#" . $chapter_parts[0], |
| 468 |
|
'number' => $chapter_parts[1] |
| 469 |
|
]; |
| 470 |
|
} |
| 471 |
|
|
| 472 |
|
public function getTitleData(string $title_url, bool $firstGet = FALSE) { |
| 473 |
|
$titleData = []; |
|
@@ 921-929 (lines=9) @@
|
| 918 |
|
return "http://kissmanga.com/Manga/{$title_url}"; |
| 919 |
|
} |
| 920 |
|
|
| 921 |
|
public function getChapterData(string $title_url, string $chapter) : array { |
| 922 |
|
$chapter_parts = explode(':--:', $chapter); |
| 923 |
|
|
| 924 |
|
return [ |
| 925 |
|
'url' => "http://kissmanga.com/Manga/{$title_url}/{$chapter_parts[0]}?id={$chapter_parts[1]}", |
| 926 |
|
//FIXME: KM has an extremely inconsistant chapter format which makes it difficult to parse. |
| 927 |
|
'number' => /*preg_replace('/--.*?$/', '', */$chapter_parts[0]/*)*/ |
| 928 |
|
]; |
| 929 |
|
} |
| 930 |
|
|
| 931 |
|
public function getTitleData(string $title_url, bool $firstGet = FALSE) { |
| 932 |
|
$titleData = []; |