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

FIX kakaopage : fix getChapters #6266

Merged
merged 1 commit into from
Oct 3, 2023
Merged
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
107 changes: 57 additions & 50 deletions src/web/mjs/connectors/kakaopage.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default class kakaopage extends Connector {
}

async _getChaptersFromPage(manga, nextCursor) {

const gql = {
operationName: 'contentHomeProductList',
variables: {
Expand All @@ -58,56 +59,62 @@ export default class kakaopage extends Connector {
sortType : 'asc',
after : nextCursor,
},
query: `query contentHomeProductList($after: String, $before: String, $first: Int, $last: Int, $seriesId: Long!, $boughtOnly: Boolean, $sortType: String) {
contentHomeProductList(
seriesId: $seriesId
after: $after
before: $before
first: $first
last: $last
boughtOnly: $boughtOnly
sortType: $sortType
) {
totalCount
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
__typename
}
edges {
cursor
node {
...SingleListViewItem
__typename
}
__typename
}
__typename
}
}

fragment SingleListViewItem on SingleListViewItem {
id
type
thumbnail
isCheckMode
isChecked
scheme
single {
productId
ageGrade
id
isFree
thumbnail
title
slideType
__typename
}
isViewed
purchaseInfoText
}
query: `query contentHomeProductList(
$after: String
$before: String
$first: Int
$last: Int
$seriesId: Long!
$boughtOnly: Boolean
$sortType: String
) {
contentHomeProductList(
seriesId: $seriesId
after: $after
before: $before
first: $first
last: $last
boughtOnly: $boughtOnly
sortType: $sortType
) {
totalCount
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
selectedSortOption {
id
name
param
}
sortOptionList {
id
name
param
}
edges {
cursor
node {
...SingleListViewItem
}
}
}
}

fragment SingleListViewItem on SingleListViewItem {
id
type
single {
productId
id
isFree
thumbnail
title
slideType
}
}
`
};
return await this.fetchGraphQL(this.url+'/graphql', gql.operationName, gql.query, gql.variables );
Expand Down
Loading