|
@@ 318-326 (lines=9) @@
|
| 315 |
|
return "http://bato.to/comic/_/comics/-r".$title_parts[0]; |
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
public function getChapterData(string $title_string, string $chapter) : array { |
| 319 |
|
//$title_string isn't used here. |
| 320 |
|
|
| 321 |
|
$chapter_parts = explode(':--:', $chapter); |
| 322 |
|
return [ |
| 323 |
|
'url' => "http://bato.to/reader#" . $chapter_parts[0], |
| 324 |
|
'number' => $chapter_parts[1] |
| 325 |
|
]; |
| 326 |
|
} |
| 327 |
|
|
| 328 |
|
public function getTitleData(string $title_url) { |
| 329 |
|
$titleData = []; |
|
@@ 660-668 (lines=9) @@
|
| 657 |
|
return "http://kissmanga.com/Manga/{$title_url}"; |
| 658 |
|
} |
| 659 |
|
|
| 660 |
|
public function getChapterData(string $title_url, string $chapter) : array { |
| 661 |
|
$chapter_parts = explode(':--:', $chapter); |
| 662 |
|
|
| 663 |
|
return [ |
| 664 |
|
'url' => "http://kissmanga.com/Manga/{$title_url}/{$chapter_parts[0]}?id={$chapter_parts[1]}", |
| 665 |
|
//FIXME: KM has an extremely inconsistant chapter format which makes it difficult to parse. |
| 666 |
|
'number' => /*preg_replace('/--.*?$/', '', */$chapter_parts[0]/*)*/ |
| 667 |
|
]; |
| 668 |
|
} |
| 669 |
|
|
| 670 |
|
public function getTitleData(string $title_url) { |
| 671 |
|
$titleData = []; |