Skip to content

Commit

Permalink
bug: fix index URL to new username
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Oct 25, 2024
1 parent 840f7eb commit 775e2eb
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
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 @@ public function handle()
$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 @@ public function handle()

/**
* @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 @@ public function handle()

/**
* @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 @@ public function handle()
$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 @@ public function handle()

/**
* @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 @@ public function handle()

/**
* @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

0 comments on commit 775e2eb

Please sign in to comment.