mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
Merge branch 'master' into qol/maintenance-3-12-22
This commit is contained in:
commit
451f38abba
30
.github/ISSUE_TEMPLATE/bug.md
vendored
Normal file
30
.github/ISSUE_TEMPLATE/bug.md
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
name: \U0001F41B Bug report
|
||||||
|
about: Let us know if something is wrong \U0001F914
|
||||||
|
title: ''
|
||||||
|
labels: 'i: bug, i: needs triage'
|
||||||
|
---
|
||||||
|
Make sure to add all the information needed to understand the bug so that someone can help. If the info is missing we'll add the 'Needs more information' label and close the issue until there is enough information. Additionally it would greatly help us reducing duplicates and we would really appriacte if you could search the existing issues for the problem you are experiencing.
|
||||||
|
|
||||||
|
Feel free to delete the template text, but please leave in the questions and answers below.
|
||||||
|
|
||||||
|
## Bug Report
|
||||||
|
|
||||||
|
* **What is the current behavior?**
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* **Please provide the steps to reproduce it** usually via the url to the REST API endpoint
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* **What is the expected behavior?**
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* **What is the motivation / use case for changing the behavior?**
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* **Other information / Contextual information** (e.g. detailed explanation, stacktraces, related issues, screenshots, suggestions how to fix, links for us to have context, eg. stackoverflow, discord channel link, etc)
|
||||||
|
|
22
.github/ISSUE_TEMPLATE/feature.md
vendored
Normal file
22
.github/ISSUE_TEMPLATE/feature.md
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
name: Feature Request
|
||||||
|
about: Have an idea?
|
||||||
|
title: ''
|
||||||
|
labels: 'i: enhancement, i: needs triage'
|
||||||
|
assignees: ''
|
||||||
|
---
|
||||||
|
Feel free to delete parts of the template text, if they are not entirely relevant for your feature request.
|
||||||
|
|
||||||
|
## Feature Request
|
||||||
|
|
||||||
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
A clear and concise description of what the problem is. E.g. I have an issue when [...]
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen. Add any considered drawbacks.
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
|
**Teachability, Documentation, Adoption, Migration Strategy**
|
||||||
|
If you can, explain how users will be able to use this and benefit from it.
|
17
.github/ISSUE_TEMPLATE/support_question.md
vendored
Normal file
17
.github/ISSUE_TEMPLATE/support_question.md
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
name: "\U0001F917 Support Question"
|
||||||
|
about: "If you have a question \U0001F4AC, please check out our discord server!"
|
||||||
|
title: ''
|
||||||
|
labels: 'i: question, i: needs triage'
|
||||||
|
assignees: ''
|
||||||
|
---
|
||||||
|
|
||||||
|
--------------^ Click "Preview" for a nicer view!
|
||||||
|
We primarily use GitHub as an issue tracker; for usage and support questions, please check out these resources below. Thanks! 😁.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
* Discord: [](https://discordapp.com/invite/4tvCr36)
|
||||||
|
* Have a look at the readme for more information on how to get support:
|
||||||
|
https://github.com/jikan-me/jikan-rest/blob/master/README.md
|
||||||
|
* Container usage for self hosters: https://github.com/jikan-me/jikan-rest/blob/master/container_usage.md
|
@ -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:
|
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
|
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
|
### Manual installation
|
||||||
Please read the [manual installation guide](https://github.com/jikan-me/jikan-rest/wiki).
|
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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| PHP | [jikan-php](https://github.com/janvernieuwe/jikan-jikanPHP) by Jan Vernieuwe |
|
||||||
| .NET | 🆕 **(v4)** [Jikan.net](https://github.com/Ervie/jikan.net) by Ervie |
|
| .NET | 🆕 **(v4)** [Jikan.net](https://github.com/Ervie/jikan.net) by Ervie |
|
||||||
| Elixir | [JikanEx](https://github.com/seanbreckenridge/jikan_ex) by Sean Breckenridge |
|
| 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
|
### Patrons
|
||||||
|
|
||||||
- Aaron Treinish
|
- Aaron Treinish
|
||||||
|
- Abdelhafid Achtaou
|
||||||
- Aika Fujiwara
|
- Aika Fujiwara
|
||||||
|
- Bobby Williams
|
||||||
- Cesar Irad Mendoza
|
- Cesar Irad Mendoza
|
||||||
|
- CrafterSama
|
||||||
- Fro116
|
- Fro116
|
||||||
- Jason Weatherly
|
- Jason Weatherly
|
||||||
- Jesse
|
- Jesse
|
||||||
|
@ -46,6 +46,7 @@ class AnimeIndexer extends Command
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
$this->ids = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -151,7 +152,7 @@ class AnimeIndexer extends Command
|
|||||||
);
|
);
|
||||||
|
|
||||||
$ids = array_merge($ids['sfw'], $ids['nsfw']);
|
$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'));
|
return json_decode(Storage::get('indexer/anime_mal_id.json'));
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,7 @@ class MangaIndexer extends Command
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
$this->ids = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -151,7 +152,7 @@ class MangaIndexer extends Command
|
|||||||
);
|
);
|
||||||
|
|
||||||
$ids = array_merge($ids['sfw'], $ids['nsfw']);
|
$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'));
|
return json_decode(Storage::get('indexer/manga_mal_id.json'));
|
||||||
}
|
}
|
||||||
|
@ -111,21 +111,21 @@ abstract class MediaSearchQueryBuilder extends SearchQueryBuilder
|
|||||||
->where('status', $status);
|
->where('status', $status);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($score !== 0) {
|
if (!is_null($score)) {
|
||||||
$score = (float)$score;
|
$score = (float)$score;
|
||||||
|
|
||||||
$builder = $builder
|
$builder = $builder
|
||||||
->where('score', '>=', $score);
|
->where('score', '>=', $score);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($min_score !== null) {
|
if (!is_null($min_score)) {
|
||||||
$min_score = (float)$min_score;
|
$min_score = (float)$min_score;
|
||||||
|
|
||||||
$builder = $builder
|
$builder = $builder
|
||||||
->where('score', '>=', $min_score);
|
->where('score', '>=', $min_score);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($max_score !== null) {
|
if (!is_null($max_score)) {
|
||||||
$max_score = (float)$max_score;
|
$max_score = (float)$max_score;
|
||||||
|
|
||||||
$builder = $builder
|
$builder = $builder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user