Greasy Fork

[RED] Cover Inspector

Easify & speed-up of finding and updating of invalid, missing or not optimal album covers on site

目前为 2022-07-10 提交的版本。查看 最新版本

作者
Anakunda
评分
0 0 0
版本
1.13.14
创建于
2020-09-21
更新于
2022-07-10
大小
88.8 KB
许可证
GPL-3.0-or-later
适用于

Out of the box Cover Inspector self just identifies and labels covers suitable for updating/replacing for having

  • too low resolution
  • too big size
  • hosted at unpreferred host

By fulfilling additional requirements it's facilities extend as follow:

  • Alt + click handler for active links inside torrent description areas to directly set album cover from the referred source; requires installed Image Host Helper script as backend and setting ajax.php API key as redacted_api_key storage entry, for best results it's advisable to also set up PTPimg API key in IHH storage.

  • If cover is hosted at unpreferred host, clicking the host on cover overlay directly rehosts it to site's preferred host which is PTPimg for RED (same requirements)

  • If cover size exceeds limit, clicking the size on cover overlay directly replaces it by reduced variant (same requirements). The size threshold can be adjusted by acceptable_cover_size storage entry (defaults to 4MB).

  • If cover resolution is low, clicking the resolution on cover overlay attempts to lookup and set higher resolution image, auto-adding the release group to "Poor Quality cover art" collage on fail or if the new image is poor quality too. The quality threshold can be adjusted by acceptable_cover_resolution storage entry (defaults to 300px).

  • Drag & drop local file or web link to cover preview box replaces current cover with cover from source (same requirements)

  • On demand batch processing in all torrent listings and on artist profiles + optional batch rehost (same requirements)

  • On demand batch auto lookup and update missing or dead covers from links found in description and UPC codes/label+cat no. for torrents in all listings and on artist pages (same requirements)

[Experimental[ integration with Torrents with broken cover art links, Missing covers initiative and Torrents with poor quality cover art images collages

The torrents table extends by [Try to add covers] button in header. The feature loads full release details and tries to look up cover by any of link to known destination in wiki body, barcode or label/catalog# for any of editions, or artist/album/year of the release group. On success the group is removed from collage. Groups without additional covers already having valid image are just removed from collage.
Requirements: installed Image Host Helper script, set up RED API token with permission for editing torrent description, optionally set up PTPimg API key in IHH config for rehosting everything.

  • for including Discogs database into lookups, user authorization must be set (discogs_api_token or discogs_api_consumerkey/discogs_api_consumersecret pair)

  • newly, for images found quality (sufficient resolution) is evaluated. Only images with good resolution are auto-removed from related collage. The quality threshold can be adjusted by acceptable_cover_resolution storage entry (defaults to 250px). Dropping any image dimension below the value classifies it as poor quality. Setting the threshold to 0 deactivates the quality check.

=>