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

Confusion regarding %artist% and %member_token% in Filename Format Syntax #1346

Open
3 tasks done
user-566 opened this issue Jul 1, 2024 · 2 comments
Open
3 tasks done

Comments

@user-566
Copy link

user-566 commented Jul 1, 2024

Prerequisites

Description

Sorry for the probably dumb question, I just can't figure out what is the difference between %artist% and %member_token% in the Filename Format Syntax and my Google-Fu seems to be failing me.

I thought that %artist% was tied to the "pixiv ID" of an account (aka their displayed username on their user page), but I'm not sure what information %member_token% is tied to, since both are indicated as "might change" in the Filename Format Syntax documentation.

When a user changes their "pixiv ID" in their account settings, which ones of these two get updated (or both)?

Doing some testing with a random user, I get "ふーろ@こみトレ43B-66b" when using %artist%, which seems to confirm my theory about it being linked to the display name, but I get "johnsonwade" when using %member_token%. Where does "johnsonwade" com from? Was it the original name of the account upon its creation (and if that is the case, in which circumstance can that change)?

On a similar note, I'm also not sure I understand what's the difference between %artist% and %original_artist%, or %member_token% and %original_member_token%. Both (original or not) seem to be yielding the same result in my testing.

Steps to Reproduce

N/A

Expected behavior: [What you expected to happen]

N/A

Actual behavior: [What actually happened]

N/A

Log file: [Attach the pixivutil.log file in the application folder, recommended to delete the old file, reproduce the issue, and upload the newly generated file here]

N/A

Versions

Latest (v20230105)

@user-566
Copy link
Author

After much digging around in the code, I think I might have found something (note that I'm not a programmer so there's a good chance what I'm saying doesn't make any sense).
The %member_token% used in the config seems to be derived from PixivArtist.artistToken value which is itself obtained from the "userAccount" field.

I could not figure out how "userAccount" was being set in the code, but I found this helpful list of Pixiv APIs that finally gave me an answer using the Get-Artwork-Information API call. Turns out "userAccount" isn't returned in the Get-User-Information (full) API call for some reason which is why I was having so much trouble finding it.

My other questions still remain though, namely what does this field correspond to exactly and in which situation can it actually change? After all the digging I've been doing I'm inclined to believe this field will always be the same, but that goes against what is being indicated in the readme so I'd appreciate it if someone else that knows what they're talking about could also weigh in on this...

@KSuiz
Copy link
Contributor

KSuiz commented Sep 30, 2024

On the settings page, Nickname corresponds to artist, and Pixiv ID corresponds to member_token. The latter can only be changed once, or as many times with a 30-day cooldown with premium but you cannot change it to the previous name. As far as I'm aware it's only really used for pixiv.me links

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