Merge branch 'master' into feature/issue_templates1

This commit is contained in:
Irfan 2022-12-25 10:40:14 +05:00 committed by GitHub
commit 91a45f8360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 8 deletions

View File

@ -18,7 +18,7 @@ The word _Jikan_ literally translates to _Time_ in Japanese (**時間**). And th
This is Jikan REST API **v4** - which has been merged into master branch. If you're looking for deploying a v3 build, view the v3 branch for installation instructions:
https://github.com/jikan-me/jikan-rest/tree/v3
⚠ v3 is now maintaince-only and will stop receiving updates once it's discontinued from the public API.
⚠ v3 is discontinued and will no longer receive any updates.
### Manual installation
Please read the [manual installation guide](https://github.com/jikan-me/jikan-rest/wiki).
@ -47,9 +47,9 @@ For any additional help, join our [Discord server](http://discord.jikan.moe/).
|------------|----------|
| JavaScript | [JikanJS](https://github.com/zuritor/jikanjs) by Zuritor<br>🆕 **(v4)** [JikanJS](https://github.com/mateoaranda/jikanjs) by Mateo Aranda |
| Java | [Jikan4java](https://github.com/Doomsdayrs/Jikan4java) by Doomsdayrs<br>🆕 **(v4)** [reactive-jikan](https://github.com/SandroHc/reactive-jikan) by Sandro Marques<br>🆕 **(v4)** [Jaikan](https://github.com/ShindouMihou/Jaikan) by ShindouMihou |
| Python | [JikanPy](https://github.com/abhinavk99/jikanpy) by Abhinav Kasamsetty |
| Python | [JikanPy](https://github.com/abhinavk99/jikanpy) by Abhinav Kasamsetty<br>🆕 **(v4)** [jikan4snek](https://github.com/ScathachGrip/jikan4snek) by Indrawan I. |
| Node.js | [jikan-node](https://github.com/xy137/jikan-node) by xy137<br>[jikan-nodejs](https://github.com/ribeirogab/jikan-nodejs) by ribeirogab<br>🆕 **(v4)** [Jikan4JS](https://github.com/rizzzigit/jikan4.js) by RizzziGit<br>🆕 **(v4)** [jikan-api.js](https://github.com/OpenianDevelopment/jikan-api.js) by OpenianDev |
| TypeScript | [jikants](https://github.com/Julien-Broyard/jikants) by Julien Broyard<br>[jikan-client](https://github.com/javi11/jikan-client) by Javier Blanco |
| TypeScript | [jikants](https://github.com/Julien-Broyard/jikants) by Julien Broyard<br>[jikan-client](https://github.com/javi11/jikan-client) by Javier Blanco<br>🆕 **(v4)** [jikan-ts](https://github.com/tutkli/jikan-ts) by Clara Castillo |
| PHP | [jikan-php](https://github.com/janvernieuwe/jikan-jikanPHP) by Jan Vernieuwe |
| .NET | 🆕 **(v4)** [Jikan.net](https://github.com/Ervie/jikan.net) by Ervie |
| Elixir | [JikanEx](https://github.com/seanbreckenridge/jikan_ex) by Sean Breckenridge |
@ -81,8 +81,11 @@ We have a free [REST API service](https://jikan.moe), if you wish to support us
### Patrons
- Aaron Treinish
- Abdelhafid Achtaou
- Aika Fujiwara
- Bobby Williams
- Cesar Irad Mendoza
- CrafterSama
- Fro116
- Jason Weatherly
- Jesse

View File

@ -46,6 +46,7 @@ class AnimeIndexer extends Command
public function __construct()
{
parent::__construct();
$this->ids = [];
}
/**
@ -151,7 +152,7 @@ class AnimeIndexer extends Command
);
$ids = array_merge($ids['sfw'], $ids['nsfw']);
Storage::put('indexer/anime_mal_id.json', json_encode($this->ids));
Storage::put('indexer/anime_mal_id.json', json_encode($ids));
return json_decode(Storage::get('indexer/anime_mal_id.json'));
}

View File

@ -46,6 +46,7 @@ class MangaIndexer extends Command
public function __construct()
{
parent::__construct();
$this->ids = [];
}
/**
@ -151,7 +152,7 @@ class MangaIndexer extends Command
);
$ids = array_merge($ids['sfw'], $ids['nsfw']);
Storage::put('indexer/manga_mal_id.json', json_encode($this->ids));
Storage::put('indexer/manga_mal_id.json', json_encode($ids));
return json_decode(Storage::get('indexer/manga_mal_id.json'));
}

View File

@ -111,21 +111,21 @@ abstract class MediaSearchQueryBuilder extends SearchQueryBuilder
->where('status', $status);
}
if ($score !== 0) {
if (!is_null($score)) {
$score = (float)$score;
$builder = $builder
->where('score', '>=', $score);
}
if ($min_score !== null) {
if (!is_null($min_score)) {
$min_score = (float)$min_score;
$builder = $builder
->where('score', '>=', $min_score);
}
if ($max_score !== null) {
if (!is_null($max_score)) {
$max_score = (float)$max_score;
$builder = $builder