Skip to content

Commit

Permalink
fix: getting invalid gallery id
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyYam committed Mar 5, 2024
1 parent c4ae9db commit fc465b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Parser/doujin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export const parseDoujinInfo = (
const gallery_id = (
$('.thumb-container').first().find('a > img').attr('data-src') ||
'/galleries/'
).split('/galleries/')[0]
)
.split('/galleries/')[1]
.split('/')[0]
if (site === 'net' && api_pages)
api_pages.forEach((page, i) =>
pages.push(
Expand Down

0 comments on commit fc465b7

Please sign in to comment.