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

Update MangaPlus connector #7175

Closed
wants to merge 1 commit into from
Closed

Conversation

viliml
Copy link
Contributor

@viliml viliml commented Jun 8, 2024

No description provided.

@ronny1982
Copy link
Contributor

There is another open PR #7112 for this website.
I think the reviewer has to decide which one should be merged.

@panchenko9b
Copy link

please, update Mangaplus
It hasn't been working for two weeks now. Soon 3 weeks will pass and the chapters will disappear!!!

@ronny1982
Copy link
Contributor

ronny1982 commented Jun 9, 2024

Use HaruNeko if it is that important to you

@ronny1982 ronny1982 linked an issue Jun 10, 2024 that may be closed by this pull request
4 tasks
@MikeZeDev
Copy link
Contributor

I am tempted to close this in favor of my own PR but it could be badly interpreted :D

@ronny1982
Copy link
Contributor

Suggestion to close PR after Saturday, 31 August 2024 (12 weeks) if not approved by a reviewer.

@MikeZeDev
Copy link
Contributor

Copy link
Contributor

@MikeZeDev MikeZeDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Update langage array
  • Add syntax back in proto file
  • Clean proto file from unneeded stuff

Otherwise, nice PR. I will close my own once this one is validated :)

@@ -2,7 +2,7 @@
// Based on: https://mangaplus.shueisha.co.jp/js/app.a3091b24.js

package MangaPlus;
syntax = "proto3";
//syntax = "proto3";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason why you removed this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the record, i kept it uncommented, it still works without any error or warning in console...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Just remove the comment then. Its like that in other proto files afaik, Better keep things similar.

repeated Banner titleBanners = 20;
// optional UserTickets userTickets = 21;
repeated Chapter ticketChapterList = 22;
repeated Title ticketTitleList = 23;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the feeling than many of those are useless for our code. I think they can be omited, and protobuf will just skip them

https://github.com/manga-download/hakuneko/blob/51faa0238acf24d654d01293ea6763eaa1b073ce/src/web/mjs/connectors/ShueishaMangaPlus.proto

let data = await this.fetchPROTO(request, this.protoTypes, this.rootType);
return data.success.allTitlesView.titles.map(manga => {
return data.success.allTitlesViewV2.allTitlesGroup.flatMap(mangaGroup => mangaGroup.titles.map(manga => {
return {
id: manga.titleId,
title: `${manga.name} ${this._getLanguage(manga.language)}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should update language array

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i hate pictures of text (but i still love your PR), episode 65536:
0: '[en]', 1: '[es]', 2: '[fr]', 3: '[id]', 4: '[pt-br]', 5: '[ru]', 6: '[th]', 7: '[de]', 8: '[unk]', 9: '[vi]'
PS: what is this unk lang? i don't see it on shueisha manga list....

Copy link
Contributor

@MikeZeDev MikeZeDev Jul 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasnt able to find the language for 8. But since we have a 9 we ought to have a 8 .

@viliml
Copy link
Contributor Author

viliml commented Aug 1, 2024

I am tempted to close this in favor of my own PR but it could be badly interpreted :D

Feel free to do so. I just wanted to put this out into the world in case people didn't know how to implement the new API yet. Now that you've seen it you can close it and do it yourself if you prefer that way.

@MikeZeDev
Copy link
Contributor

We have more chances to get it done if i validate your PR than if we wait for mine to be reviewed by another dev. They are REALLY REALLY busy.

@MikeZeDev MikeZeDev closed this Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MANGA PLUS Shueisha] Connector not working
5 participants