Skip to content

Commit

Permalink
[MangaDexBridge] Fix bug with unavailable chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
yamanq committed Mar 31, 2022
1 parent a0dbe54 commit c56e415
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bridges/MangaDexBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class MangaDexBridge extends BridgeAbstract {
'name' => 'URL to title page',
'exampleValue' => 'https://mangadex.org/title/f9c33607-9180-4ba6-b85c-e4b5faee7192/official-test-manga',
'required' => true
),
'external' => array(
'name' => 'Allow external feed items',
'type' => 'checkbox',
'title' => 'Some chapters are inaccessible or only available on an external site. Include these?'
)
)
);
Expand Down Expand Up @@ -58,6 +63,9 @@ protected function getAPI() {
preg_match(self::TITLE_REGEX, $this->getInput('url'), $matches)
or returnClientError('Invalid URL Parameter');
$params['order[updatedAt]'] = 'desc';
if (!$this->getInput('external')) {
$params['includeFutureUpdates'] = '0';
}
$array_params['includes[]'] = array('manga', 'scanlation_group', 'user');
$uri = self::API_ROOT . 'manga/' . $matches['uuid'] . '/feed';
break;
Expand Down

0 comments on commit c56e415

Please sign in to comment.