mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[MangaDex] improve date handling (#2864)
prioritize new chapters rather than just edited ones. should avoid batch-renaming drowning out new chapters, and existing items being re-sorted in the feed when they're edited. documentation here: https://api.mangadex.org/docs/dates/
This commit is contained in:
parent
5076d09de6
commit
2c7a9d7c45
@ -94,7 +94,7 @@ class MangaDexBridge extends BridgeAbstract {
|
|||||||
preg_match(self::TITLE_REGEX, $this->getInput('url'), $matches)
|
preg_match(self::TITLE_REGEX, $this->getInput('url'), $matches)
|
||||||
or returnClientError('Invalid URL Parameter');
|
or returnClientError('Invalid URL Parameter');
|
||||||
$this->feedURI = self::URI . 'title/' . $matches['uuid'];
|
$this->feedURI = self::URI . 'title/' . $matches['uuid'];
|
||||||
$params['order[updatedAt]'] = 'desc';
|
$params['order[readableAt]'] = 'desc';
|
||||||
if (!$this->getInput('external')) {
|
if (!$this->getInput('external')) {
|
||||||
$params['includeFutureUpdates'] = '0';
|
$params['includeFutureUpdates'] = '0';
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ class MangaDexBridge extends BridgeAbstract {
|
|||||||
$params['chapter'] = $this->getInput('chapter');
|
$params['chapter'] = $this->getInput('chapter');
|
||||||
$params['groups[]'] = $this->getInput('groups');
|
$params['groups[]'] = $this->getInput('groups');
|
||||||
$params['uploader'] = $this->getInput('uploader');
|
$params['uploader'] = $this->getInput('uploader');
|
||||||
$params['order[updatedAt]'] = 'desc';
|
$params['order[readableAt]'] = 'desc';
|
||||||
if (!$this->getInput('external')) {
|
if (!$this->getInput('external')) {
|
||||||
$params['includeFutureUpdates'] = '0';
|
$params['includeFutureUpdates'] = '0';
|
||||||
}
|
}
|
||||||
@ -196,7 +196,7 @@ class MangaDexBridge extends BridgeAbstract {
|
|||||||
}
|
}
|
||||||
$item['title'] .= ' [' . $chapter['attributes']['translatedLanguage'] . ']';
|
$item['title'] .= ' [' . $chapter['attributes']['translatedLanguage'] . ']';
|
||||||
|
|
||||||
$item['timestamp'] = $chapter['attributes']['updatedAt'];
|
$item['timestamp'] = $chapter['attributes']['readableAt'];
|
||||||
|
|
||||||
$groups = array();
|
$groups = array();
|
||||||
$users = array();
|
$users = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user