PixivUtil2
PixivUtil2 copied to clipboard
[Feature Request] Fetch titles and descriptions in alternative languages
Prerequisites
- [x] Did you read FAQ section in readme.md?
- [x] Did you test with the latest releases or commit ?
- [x] Did you search for existing issues in Issues?
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?
got the sample id with both en and jp title/description?
Yeah, right here.
hmm, looks like it have new element in the preload-data called titleCaptionTranslation
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.
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.
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.
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?
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?
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.