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

[Feature Request] Fetch titles and descriptions in alternative languages #1064

Open
3 tasks done
MarqFJA87 opened this issue Dec 20, 2021 · 8 comments
Open
3 tasks done

Comments

@MarqFJA87
Copy link

Prerequisites

Description

Ever since mid last year, some Pixiv posts are set to display an alternative title and/or description for users that set English as their preferred language. Currently, PixivUtil2 only fetches the original titles and descriptions; is it possible to make it able to detect and fetch the English ones where they exist, even if it would only be included in the text file containing the Pixiv post's info?

@Nandaka
Copy link
Owner

Nandaka commented Dec 20, 2021

got the sample id with both en and jp title/description?

@MarqFJA87
Copy link
Author

Yeah, right here.

@Nandaka
Copy link
Owner

Nandaka commented Dec 20, 2021

hmm, looks like it have new element in the preload-data called titleCaptionTranslation
image

It doesn't tell in which language though and the value might be empty for either workTitle or workCaption.

Let me see what I can do.

@MarqFJA87
Copy link
Author

MarqFJA87 commented Dec 20, 2021

Well, FWIW, these translations seem to be strictly in English, given the aforementioned official announcement. It makes sense, since there are a lot more potential native and L2 Anglophone users than even a combination of East Asian language-speaking ones. That should make it easier for you, since you only have to worry about ignoring an empty workTitle / workCaption entry.

Nandaka added a commit that referenced this issue Dec 20, 2021
…lated title if exists, else it will use original title
Nandaka added a commit that referenced this issue Dec 20, 2021
@Nandaka
Copy link
Owner

Nandaka commented Dec 20, 2021

updated in the latest commit, also add new filename format for translated title.

Not sure if Fanbox also have or not, as I don't really use it.

@MarqFJA87
Copy link
Author

I noticed yesterday that this feature stopped working at some point. Is it due to changes on Pixiv's end, or where there problems with the feature that led to it being disabled pending a fix?

@Nandaka
Copy link
Owner

Nandaka commented Jul 23, 2022

using https://www.pixiv.net/en/artworks/94891885, looks like it doesn't have the translated title anymore from the server (empty value), only the caption. Do you have another example?

image

@MarqFJA87
Copy link
Author

Here you go. Same artist, latest work as of this writing. I downloaded it, and the fetched caption is the Japanese one, not the English-translated that I can see when I open the page.

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

No branches or pull requests

2 participants