Skip to content

Image hosts

The bot extracts screenshots from the video and uploads them to an image hosting service; the URLs end up in the torrent description. Keys live in tracker_config, priorities in user_preferences.

Supported hosts

Host Site Key
PtScreens ptscreens.com PTSCREENS_KEY
LensDump lensdump.com LENSDUMP_KEY
FreeImage freeimage.host FREE_IMAGE_KEY
ImgBB imgbb.com IMGBB_KEY
ImgFI imgfi.com IMGFI_KEY
PassIMA passtheima.ge PASSIMA_KEY
ImaRide imageride.net IMARIDE_KEY

For each host: sign up on the site, generate the API key, paste it into ittup.json:

"IMGBB_KEY": "your_key",
"FREE_IMAGE_KEY": "your_key",

How many hosts should I configure?

You don't have to use them all, but configure at least two: if an upload to one host fails, the bot automatically moves to the next one.

Priorities and fallback

In user_preferences every host has a priority — 0 = first attempt:

"PTSCREENS_PRIORITY": 0,
"LENSDUMP_PRIORITY": 1,
"FREE_IMAGE_PRIORITY": 2,
"IMGBB_PRIORITY": 3,
"IMGFI_PRIORITY": 4,
"PASSIMA_PRIORITY": 5,
"IMARIDE_PRIORITY": 6,

The bot tries the hosts in increasing priority order; on the first error (invalid key, service down, rate limit) it moves to the next one.

Every screenshot or no upload

With "SCREENSHOTS_QUORUM": "True" (off by default) a content is uploaded only if all its screenshots (NUMBER_OF_SCREENSHOTS) are on an image host, on one or more hosts. If a screenshot can't be uploaded on any host, the bot doesn't upload that content: it says why, removes the screenshots already uploaded from the hosts with their delete link, and goes on with the next content. A screenshot that can't be removed is logged with its delete link, to remove it by hand. ImgBB has no API to delete an image: its screenshots are always left to remove by hand, from the delete link in the log.

The screenshots left on the hosts are also appended to screenshots_to_delete.txt in the config folder, one per line: date, content, host, image URL and delete link.

Screenshot options (NUMBER_OF_SCREENSHOTS, compression, resize, webp) are in Advanced options.