PixivUtil2 icon indicating copy to clipboard operation
PixivUtil2 copied to clipboard

[Feature Request] Fetch titles and descriptions in alternative languages

Open MarqFJA87 opened this issue 3 years ago • 8 comments

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?

MarqFJA87 avatar Dec 20 '21 02:12 MarqFJA87

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

Nandaka avatar Dec 20 '21 08:12 Nandaka

Yeah, right here.

MarqFJA87 avatar Dec 20 '21 12:12 MarqFJA87

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.

Nandaka avatar Dec 20 '21 13:12 Nandaka

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.

MarqFJA87 avatar Dec 20 '21 13:12 MarqFJA87

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.

Nandaka avatar Dec 20 '21 14:12 Nandaka

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?

MarqFJA87 avatar Jul 08 '22 21:07 MarqFJA87

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

Nandaka avatar Jul 23 '22 02:07 Nandaka

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.

MarqFJA87 avatar Jul 23 '22 03:07 MarqFJA87