Skip to content
Googleplex edited this page Apr 23, 2021 · 5 revisions

Configuration

Notice: Pixiv no longer supports username & password authorization from Feb 9, 2021; You'll have to obtain a refresh token in advance (see #9)

PIXIV_TOKEN

Required unless Nazurin has cached one in your database

Your Pixiv refresh token, you may use this tool to get one.

PIXIV_MIRROR

Optional

Image proxy when viewing artworks, introduced to help Telegram server get the image stably, downloading artworks still uses Pixiv server

e.g.: i.pixiv.cat

Default: i.pximg.net, aka official image server

PIXIV_TRANSLATION

Optional

Language for possible tag translation, if translated name is unavailable, original name is used.

Use original name if not set, configured value will be set as Accept-Language in headers.

Example: zh-CN, en-US

Ugoira support

To support Pixiv ugoira gif preview (sent as mp4) in Telegram, you should have ffmpeg installed.

For more information, refer to https://ffmpeg.org/, make sure libx264 encoder is installed.

On heroku, add a buildpack to your application:

heroku buildpacks:add --index 1 https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

Clone this wiki locally