Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: fix index URL to new username #556

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions COMMANDS.MD
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Example: `cache:method queue`
Since v4 uses MongoDB as a means to index cache on some endpoints, having a built cache is important since it
works best for endpoints like search or top.

`Indexer:Anime` uses [https://github.com/seanbreckenridge/mal-id-cache](https://github.com/seanbreckenridge/mal-id-cache) to fetch available MAL IDs and indexes them.
`Indexer:Anime` uses [https://github.com/purarue/mal-id-cache](https://github.com/purarue/mal-id-cache) to fetch available MAL IDs and indexes them.

This function only needs to be run once. Any entry's cache updating will automatically be taken care of if it's expired, and a client makes a request for that entry.

Expand All @@ -90,7 +90,7 @@ This translates to running entries that previously failed to index or update, in
Since v4 uses MongoDB as a means to index cache on some endpoints, having a built cache is important since it
works best for endpoints like search or top.

`Indexer:Manga` uses [https://github.com/seanbreckenridge/mal-id-cache](https://github.com/seanbreckenridge/mal-id-cache) to fetch available MAL IDs and indexes them.
`Indexer:Manga` uses [https://github.com/purarue/mal-id-cache](https://github.com/purarue/mal-id-cache) to fetch available MAL IDs and indexes them.

This function only needs to be run once. Any entry's cache updating will automatically be taken care of if it's expired, and a client makes a request for that entry.

Expand Down
1 change: 0 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ For any additional help, join our [Discord server](http://discord.jikan.moe/).
| 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 |
| Go | 🆕 **(v4)** [jikan-go](https://github.com/darenliang/jikan-go) by Daren Liang<br>[jikan2go](https://github.com/nokusukun/jikan2go) by nokusukun |
| Ruby | [Jikan.rb](https://github.com/Zerocchi/jikan.rb) by Zerocchi |
| Dart | [jikan-dart](https://github.com/charafau/jikan-dart) by Rafal Wachol |
Expand Down
8 changes: 4 additions & 4 deletions app/Console/Commands/Indexer/AnimeIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
$index = (int)$index;
$delay = (int)$delay;

$this->info("Info: AnimeIndexer uses seanbreckenridge/mal-id-cache fetch available MAL IDs and updates/indexes them\n\n");
$this->info("Info: AnimeIndexer uses purarue/mal-id-cache fetch available MAL IDs and updates/indexes them\n\n");

Check warning on line 70 in app/Console/Commands/Indexer/AnimeIndexer.php

View check run for this annotation

Codecov / codecov/patch

app/Console/Commands/Indexer/AnimeIndexer.php#L70

Added line #L70 was not covered by tests

if ($failed && Storage::exists('indexer/indexer_anime.save')) {
$this->ids = $this->loadFailedMalIds();
Expand Down Expand Up @@ -140,14 +140,14 @@

/**
* @return array
* @url https://github.com/seanbreckenridge/mal-id-cache
* @url https://github.com/purarue/mal-id-cache
*/
private function fetchMalIds() : array
{
$this->info("Fetching MAL ID Cache https://raw.githubusercontent.com/seanbreckenridge/mal-id-cache/master/cache/anime_cache.json...\n");
$this->info("Fetching MAL ID Cache https://raw.githubusercontent.com/purarue/mal-id-cache/master/cache/anime_cache.json...\n");

Check warning on line 147 in app/Console/Commands/Indexer/AnimeIndexer.php

View check run for this annotation

Codecov / codecov/patch

app/Console/Commands/Indexer/AnimeIndexer.php#L147

Added line #L147 was not covered by tests

$ids = json_decode(
file_get_contents('https://raw.githubusercontent.com/seanbreckenridge/mal-id-cache/master/cache/anime_cache.json'),
file_get_contents('https://raw.githubusercontent.com/purarue/mal-id-cache/master/cache/anime_cache.json'),

Check warning on line 150 in app/Console/Commands/Indexer/AnimeIndexer.php

View check run for this annotation

Codecov / codecov/patch

app/Console/Commands/Indexer/AnimeIndexer.php#L150

Added line #L150 was not covered by tests
true
);

Expand Down
6 changes: 3 additions & 3 deletions app/Console/Commands/Indexer/AnimeSweepIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@

/**
* @return array
* @url https://github.com/seanbreckenridge/mal-id-cache
* @url https://github.com/purarue/mal-id-cache
*/
private function fetchMalIds(): array
{
$this->info("Fetching MAL ID Cache https://raw.githubusercontent.com/seanbreckenridge/mal-id-cache/master/cache/anime_cache.json...\n");
$this->info("Fetching MAL ID Cache https://raw.githubusercontent.com/purarue/mal-id-cache/master/cache/anime_cache.json...\n");

Check warning on line 81 in app/Console/Commands/Indexer/AnimeSweepIndexer.php

View check run for this annotation

Codecov / codecov/patch

app/Console/Commands/Indexer/AnimeSweepIndexer.php#L81

Added line #L81 was not covered by tests

$ids = json_decode(
file_get_contents('https://raw.githubusercontent.com/seanbreckenridge/mal-id-cache/master/cache/anime_cache.json'),
file_get_contents('https://raw.githubusercontent.com/purarue/mal-id-cache/master/cache/anime_cache.json'),

Check warning on line 84 in app/Console/Commands/Indexer/AnimeSweepIndexer.php

View check run for this annotation

Codecov / codecov/patch

app/Console/Commands/Indexer/AnimeSweepIndexer.php#L84

Added line #L84 was not covered by tests
true
);

Expand Down
8 changes: 4 additions & 4 deletions app/Console/Commands/Indexer/MangaIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
$index = (int)$index;
$delay = (int)$delay;

$this->info("Info: MangaIndexer uses seanbreckenridge/mal-id-cache fetch available MAL IDs and updates/indexes them\n\n");
$this->info("Info: MangaIndexer uses purarue/mal-id-cache fetch available MAL IDs and updates/indexes them\n\n");

Check warning on line 70 in app/Console/Commands/Indexer/MangaIndexer.php

View check run for this annotation

Codecov / codecov/patch

app/Console/Commands/Indexer/MangaIndexer.php#L70

Added line #L70 was not covered by tests

if ($failed && Storage::exists('indexer/indexer_manga.save')) {
$this->ids = $this->loadFailedMalIds();
Expand Down Expand Up @@ -140,14 +140,14 @@

/**
* @return array
* @url https://github.com/seanbreckenridge/mal-id-cache
* @url https://github.com/purarue/mal-id-cache
*/
private function fetchMalIds() : array
{
$this->info("Fetching MAL ID Cache https://raw.githubusercontent.com/seanbreckenridge/mal-id-cache/master/cache/manga_cache.json...\n");
$this->info("Fetching MAL ID Cache https://raw.githubusercontent.com/purarue/mal-id-cache/master/cache/manga_cache.json...\n");

Check warning on line 147 in app/Console/Commands/Indexer/MangaIndexer.php

View check run for this annotation

Codecov / codecov/patch

app/Console/Commands/Indexer/MangaIndexer.php#L147

Added line #L147 was not covered by tests

$ids = json_decode(
file_get_contents('https://raw.githubusercontent.com/seanbreckenridge/mal-id-cache/master/cache/manga_cache.json'),
file_get_contents('https://raw.githubusercontent.com/purarue/mal-id-cache/master/cache/manga_cache.json'),

Check warning on line 150 in app/Console/Commands/Indexer/MangaIndexer.php

View check run for this annotation

Codecov / codecov/patch

app/Console/Commands/Indexer/MangaIndexer.php#L150

Added line #L150 was not covered by tests
true
);

Expand Down
6 changes: 3 additions & 3 deletions app/Console/Commands/Indexer/MangaSweepIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@

/**
* @return array
* @url https://github.com/seanbreckenridge/mal-id-cache
* @url https://github.com/purarue/mal-id-cache
*/
private function fetchMalIds(): array
{
$this->info("Fetching MAL ID Cache https://raw.githubusercontent.com/seanbreckenridge/mal-id-cache/master/cache/manga_cache.json...\n");
$this->info("Fetching MAL ID Cache https://raw.githubusercontent.com/purarue/mal-id-cache/master/cache/manga_cache.json...\n");

Check warning on line 78 in app/Console/Commands/Indexer/MangaSweepIndexer.php

View check run for this annotation

Codecov / codecov/patch

app/Console/Commands/Indexer/MangaSweepIndexer.php#L78

Added line #L78 was not covered by tests

$ids = json_decode(
file_get_contents('https://raw.githubusercontent.com/seanbreckenridge/mal-id-cache/master/cache/manga_cache.json'),
file_get_contents('https://raw.githubusercontent.com/purarue/mal-id-cache/master/cache/manga_cache.json'),

Check warning on line 81 in app/Console/Commands/Indexer/MangaSweepIndexer.php

View check run for this annotation

Codecov / codecov/patch

app/Console/Commands/Indexer/MangaSweepIndexer.php#L81

Added line #L81 was not covered by tests
true
);

Expand Down