Skip to content

Commit

Permalink
Replace Kitsu Domain to .app
Browse files Browse the repository at this point in the history
  • Loading branch information
nattadasu authored Aug 11, 2024
1 parent b1529dd commit 3a30182
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Modules/SnapAllSupportedSites.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $links = @(
# "https://annict.jp", # .jp tld now redirects to .com instead
"https://bgm.tv",
"https://kaize.io",
"https://kitsu.io",
"https://kitsu.app",
"https://mangadex.org",
"https://mangaupdates.com",
"https://myanimelist.net",
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ filled in environment variable** for the backup progress works.
| [Baka-Updates](https://www.mangaupdates.com) | United States† | English | Manga | - || `API` | - | - | - | Logging in with API,<br>but CSV/TSV export is undocumented API path |
| [Bangumi](https://bgm.tv) | China | Chinese | Anime, Manga, Games, TV Show | [**Yes**](https://github.com/bangumi/frontend) || `API` | - | - | **Yes** | |
| [Kaize.io](https://kaize.io) | Switzerland† | English | Anime, Manga | - || `SCRAPE` | **Yes** | - | - | Scrapes user's profile page and lists |
| [Kitsu](https://kitsu.io) | United States | *Multiple languages* | Anime, Manga | [**Yes**](https://github.com/hummingbird-me/kitsu-web) || `API` | - | - | - | |
| [Kitsu](https://kitsu.app) | United States | *Multiple languages* | Anime, Manga | [**Yes**](https://github.com/hummingbird-me/kitsu-web) || `API` | - | - | - | |
| [MangaDex](https://mangadex.org) | Vietnam† | English | Manga | - || `API` | - | - | - | Will be deprecated soon,<br>2FA-enabled account and OAuth not supported |
| [MyAnimeList](https://myanimelist.net) | United States, Japan | English | Anime, Manga | - || `3PA` | **Yes** | **Yes** | - | Uses MAL Exporter from Azure Website |
| [Notify.moe](https://notify.moe) | Korea, Japan | English | Anime | [**Yes**](https://github.com/animenotifier/notify.moe) || `API` | **Yes** | - | - | |
Expand Down Expand Up @@ -401,7 +401,7 @@ You also need to fork the repository before cloning the repo to your local machi

### Kitsu

**Website**: https://kitsu.io
**Website**: https://kitsu.app

| Variable Name | Description | Value Type | Example |
| ---------------- | -------------- | ---------- | ------------------------ |
Expand Down
10 changes: 5 additions & 5 deletions script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -780,9 +780,9 @@ Function Get-KitsuBackup {
password = $kitsuPassword;
}

$kitsuAccessToken = (Invoke-WebRequest -Method Post -Body $kitsuParameters -Uri https://kitsu.io/api/oauth/token).Content | ConvertFrom-Json
$kitsuAccessToken = (Invoke-WebRequest -Method Post -Body $kitsuParameters -Uri https://kitsu.app/api/oauth/token).Content | ConvertFrom-Json

Invoke-WebRequest -Uri "https://kitsu.io/api/edge/library-entries/_xml?access_token=$($kitsuAccessToken.access_token)&kind=anime" -OutFile ./kitsu/animeList.xml
Invoke-WebRequest -Uri "https://kitsu.app/api/edge/library-entries/_xml?access_token=$($kitsuAccessToken.access_token)&kind=anime" -OutFile ./kitsu/animeList.xml

$auth = @{
Authorization = "Bearer $($kitsuAccessToken.access_token)"
Expand All @@ -791,7 +791,7 @@ Function Get-KitsuBackup {
'accept-language' = "en-US,en;q=0.5"
}

$gqlUri = "https://kitsu.io/api/graphql"
$gqlUri = "https://kitsu.app/api/graphql"

$gqlVariables = @{
entLim = 100
Expand Down Expand Up @@ -1015,7 +1015,7 @@ fragment library on Library {
$saveFile | ConvertTo-Json -Depth 10 | Out-File -FilePath "./kitsu/animeList.json" -Encoding UTF8 -Force

Write-Host "`nExporting Kitsu manga list"
Invoke-WebRequest -Uri "https://kitsu.io/api/edge/library-entries/_xml?access_token=$($kitsuAccessToken.access_token)&kind=manga" -OutFile ./kitsu/mangaList.xml
Invoke-WebRequest -Uri "https://kitsu.app/api/edge/library-entries/_xml?access_token=$($kitsuAccessToken.access_token)&kind=manga" -OutFile ./kitsu/mangaList.xml

# Start loop for manga
$gqlVariables = [ordered]@{
Expand Down Expand Up @@ -1136,7 +1136,7 @@ query {
"$($slug)/library?media=manga",
"$($slug)/reactions"
)
$uri = "https://kitsu.io/users"
$uri = "https://kitsu.app/users"
ForEach ($pg in $pages) {
Switch -Regex ($pg) {
"(anime|manga)$" {
Expand Down

0 comments on commit 3a30182

Please sign in to comment.