Skip to content

Commit

Permalink
fix: #474 Some shows listed in the carousel don't open list of torren…
Browse files Browse the repository at this point in the history
…ts/start playing and error out
  • Loading branch information
ThaUnknown committed Jul 11, 2024
1 parent e977584 commit 53b9f55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions common/modules/anilist.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,12 +624,12 @@ class AnilistClient {
async search (variables = {}) {
variables.sort ||= 'SEARCH_MATCH'
const query = /* js */`
query($page: Int, $perPage: Int, $sort: [MediaSort], $search: String, $onList: Boolean, $status: MediaStatus, $season: MediaSeason, $year: Int, $genre: String, $format: MediaFormat) {
query($page: Int, $perPage: Int, $sort: [MediaSort], $search: String, $onList: Boolean, $status: MediaStatus, $status_not: MediaStatus, $season: MediaSeason, $year: Int, $genre: String, $format: MediaFormat) {
Page(page: $page, perPage: $perPage) {
pageInfo {
hasNextPage
},
media(type: ANIME, search: $search, sort: $sort, onList: $onList, status: $status, season: $season, seasonYear: $year, genre: $genre, format: $format, format_not: MUSIC) {
media(type: ANIME, search: $search, sort: $sort, onList: $onList, status: $status, status_not: $status_not, season: $season, seasonYear: $year, genre: $genre, format: $format, format_not: MUSIC) {
${queryObjects}
}
}
Expand Down
2 changes: 1 addition & 1 deletion common/views/Home/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { settings } from '@/modules/settings.js'
import { anilistClient, currentSeason, currentYear } from '@/modules/anilist.js'
const bannerData = anilistClient.search({ method: 'Search', sort: 'POPULARITY_DESC', perPage: 15, onList: false, season: currentSeason, year: currentYear })
const bannerData = anilistClient.search({ method: 'Search', sort: 'POPULARITY_DESC', perPage: 15, onList: false, season: currentSeason, year: currentYear, status_not: 'NOT_YET_RELEASED' })
const manager = new SectionsManager()
Expand Down

0 comments on commit 53b9f55

Please sign in to comment.