CoverUp

Rehost RED Album & Artist Covers: intelligent quality detection, multi-source artwork picker (Discogs, MusicBrainz, Apple Music, Qobuz, Bandcamp, Deezer, Tidal), smart alt-cover management, and upload to ptpimg/imgbb/catbox/TheSunGod/custom hosts.

بۇلار بۇ قوليازمىنىڭ كود يېڭىلانغان نەشرىلىرى. بارلىق نەشرىنى كۆرسىتىش

  • v7.0.51 2026-06-17

    fixed itunes upload not working in specific circumstances

  • v7.0.50 2026-06-17

    fixed header where no artwork at all is in the release

  • v7.0.49 2026-06-16

    improved search so clearly irrelevant albums from the correct artist don't appear.

  • v7.0.48 2026-06-16

    fixed broken discogs indirect search

  • v7.0.42 2026-06-16

    fixed Qobuz direct link resolution

  • v7.0.34 2026-06-16

    improved direct link parsing, itunes/amazon junk image removal, better deezer tab results.

  • v7.0.28 2026-06-16

    tidying up search. Still need to improve Deezer/MB/BC/Qobuz tab

  • v7.0.18 2026-06-16

    small UI tweaks to improve selectors

  • v7.0.15 2026-06-16
  • v7.0.14 2026-06-16

    improved Spotify search (paste spotify URL and it detects the image)

  • v7.0.10 2026-06-16

    improved bandcamp search

  • v7.0.5 2026-06-16

    improved MB/qobuz/deezer search. Thanks @t******fe for the bug report!

  • v7.0.4 2026-06-11

    fixed imgur incorrectly showing as properly hosted

  • v7.0.1 2026-06-10

    tiny tweak

  • v7.0 2026-06-10

    Changelog

    v7.0 — 2026-06-10

    Alt-cover panel redesign

    • Alt cover rehost links are now hidden by default — replaced with a live summary: Checking alternate covers…2 of 4 alternate covers may need rehosting with an inline [Show all] link
    • Summary count updates after image probes settle; orange if action needed, grey if all fine
    • Clicking Show all reveals all links at once

    Smarter image state detection

    • New [rehost recommended — hosted on Discogs] state for images that load fine but are on a temporary source domain (Discogs CDN, MusicBrainz, Qobuz, etc.) — distinct from genuine quality failures
    • Broken images on rehost domains (e.g. a dead ptpimg link) now correctly show [broken image — rehost?] rather than [already rehosted — redo?]
    • Images already on catbox, imgbb, TheSunGod, ptpimg etc. correctly show [already rehosted — redo?] even if not rehosted via CoverUp
    • Image quality check now probes via a fresh Image() object using the actual URL — fixes false "broken" results for Gazelle lazy-loaded alt covers whose img.src was blank at check time
    • getRehostedUrl() lookup now uses the actual image URL rather than img.src, preventing source URLs (e.g. Discogs CDN links) from being incorrectly marked as already rehosted after a previous rehost

    Discogs release metadata in summary tags

    • When picking a cover from the Discogs Search tab, the release's country and year (e.g. UK, 1970) are automatically written into the cover's summary tag on RED — no extra steps needed

    Alt-cover POST fix (the core bug — v6.53–6.67)

    • Fixed: alt covers silently failed to save on the torrent page. Root cause: Redacted's addCoverField() creates inputs named image[] and summary[] (PHP array notation), not image and summary. Every POST was ignored by the server until this was corrected.

    v6.70 — 2026-06-10

    • Added REHOST_DOMAINS and isOnRehostDomain() helper to distinguish permanent rehost destinations from source domains
    • Added SOURCE_DOMAINS and isOnSourceDomain() helper for temporary/expiring image hosts
    • "Already rehosted" check now considers the current image URL's domain, not only CoverUp's stored rehost history
    • Added label above alt covers panel explaining what the rehost links are

    v6.68 — 2026-06-10

    • Fixed alt cover replace on torrent page — POST fields corrected to image[] / summary[]
    • Switched alt cover POST to multipart FormData to match Gazelle's own cover_art.js submission method
    • Added live page fetch before POST to use auth token from current DOM, preventing stale token issues
    • Discogs CDN images (i.discogs.com) now correctly flagged for re-upload rather than passed direct to RED

    v6.65–6.67 — 2026-06-10

    • Extensive diagnostic work to identify the silent POST failure: XHR spy, jQuery ajaxSend spy, and live DOM inspection of addCoverField() used to identify the image[] / summary[] field name discrepancy
    • Add-cover POST encoding tested across URL-encoded and multipart formats

    v6.59–6.64 — 2026-06-10

    • Fixed "Processing…" hang for images on known permanent hosts — these now skip re-upload and go direct to save
    • Fixed Discogs release picker fallback to use handleUploadSuccess correctly
    • Added i.discogs.com to the needsReupload list — Discogs CDN URLs are signed and expiring
    • Expanded form field scanning to entire page (not just form container)
    • Added full form HTML logging and page notice logging to diagnose silent POST failures
    • Added stopImmediatePropagation() to rehost link click handlers to prevent Gazelle's jQuery delegation intercepting clicks; moved link div outside cover_div ancestor for the same reason

    v6.53–6.58 — 2026-06-10

    • Initial debugging of the alt-cover replace bug: old image was being removed but new one never saved
    • Added guard to only run remove_cover_art if add_cover_art succeeds
    • Added response body logging for both add and remove actions
    • Tested remove-first vs add-first ordering — confirmed remove was working, add was silently failing
    • Confirmed Gazelle's add_cover div contains only three hidden fields (action, auth, groupid) — no image or summary field in the HTML

    v6.39 — 2026-06-08 (baseline)

    Starting point for this development cycle. Alt-cover replace broken on torrent pages (remove worked, add silently failed). All other functionality intact.

  • v6.39 2026-06-09
  • v6.38 2026-06-09

    added Amazon/itunes support

  • v6.37 2026-06-09

    improved Musicbrainz/Qobuz/Deezer search where no direct link is provided in the release

  • v6.36 2026-06-08

    Allows upload from computer
    Advises when image has been rehosted already and prompts to re-do if needed.

  • v6.28 2026-06-08

    Added sungod (+API) support

  • v6.26 2026-05-30
  • v6.25 2026-05-30

    further enhancements to discogs search

  • v6.24 2026-05-30
  • v6.23 2026-05-30

    host "remember my choice" changed to disabled by default.

  • v6.22 2026-05-30
  • v6.21 2026-05-30

    improved discogs search

  • v6.20 2026-05-30

    added update url

  • v6.19 2026-05-30

    allows for custom image hoster to be used.

  • v6.18 2026-05-30

    changed to allow user to specify preferred fallback in case imgbb is not regionally available or otherwise problematic.

  • v6.15 2026-05-10

    improved Qobuz search

  • v6.14 2026-05-10

    v6.14 added in Catbox as a fallback image host

  • v6.13 2026-05-09

    improved resizing logic

  • v6.12 2026-05-09

    Updated to include better source availability (e.g. Musicbrainz)

  • v6.11 2026-05-09

    v6.11 (2026-05-09)

    Added multi-source artwork picker overlay, replacing the Discogs-only dialog

    Page source links (Qobuz, Apple Music, Bandcamp, Deezer, Tidal, Spotify, Amazon) are now scanned automatically and shown in a Page Sources tab — results stream in as each service responds

    Direct Discogs release/master URLs in the page (e.g. linked as a source on the torrent) are resolved via the Discogs API, returning all images (primary + secondaries) as individual selectable cards — no longer relies solely on keyword search for these

    Discogs keyword search moved to a separate Discogs Search tab, running in parallel

    Each artwork card shows a coloured source badge and a live resolution badge (green ≥500px, red below)

    Discogs token setup is now accessible from within the picker footer without blocking other sources

    Per-service resolvers: Apple Music uses iTunes lookup API at max resolution; Deezer uses public API cover_xl; Qobuz constructs CDN URL directly; Bandcamp bumps og:image from 700px (_7) to original (_0)

  • v6.9 2026-05-04

    v6.9 — imgbb fallback when ptpimg down; canary check before ptpimg upload; ptpimg/imgur flagged for rehosting; always shows Discogs search on click; "image ok — rehost anyway?" label; removed unreliable file size check; inline imgbb key prompt if no key found

  • v6.9 2026-05-04

    Prompts for API if not hardcoded

  • v6.8 2026-05-04

    v6.8 — Always shows Discogs search on rehost click; ptpimg/imgur flagged for rehosting; imgbb fallback when ptpimg down; removed unreliable file size check; "image ok — rehost anyway?" label for fine images

  • v6.2 2026-05-04

    v6.2 — imgbb fallback when ptpimg is unavailable; canary check verifies ptpimg CDN before uploading; only flags imgur and low-resolution images (removed unreliable file size check); hardcoded API key constants for easy setup

  • v6.1 2026-05-04

    v6.1 — Added imgbb fallback when ptpimg is unavailable. Canary check verifies ptpimg CDN is actually serving images before uploading. Hardcoded API key constants for easy setup.

  • v6.0 2026-02-10

    # Changelog - Rehost RED Album & Artist Covers to ptpimg.me

    ## Version 6.0 - Discogs Edition (2025-02-10)

    ### 🎵 Major New Features

    **Discogs Integration**
    - Automatic artwork search via Discogs API when low-quality covers are detected
    - Visual grid interface showing multiple cover options from Discogs releases
    - Click any cover to select it for rehosting
    - Real-time resolution badges (green for good quality, red for low resolution)
    - Display of release year, format, and title for each result

    **Smart Album Detection**
    - Automatically parses artist name, album title, and year from RED page headers
    - Intelligent search query construction for better Discogs matches
    - Works on both torrent group pages and artist pages

    **Token Management**
    - Built-in Discogs token setup wizard (no manual script editing required!)
    - One-click access to Discogs developer settings
    - Persistent token storage via Tampermonkey
    - Token only needs to be set up once

    ### ✨ UX Improvements

    **Multiple Exit Options**
    - **Select from Discogs** - Click any cover image to choose it
    - **Custom URL** - Paste any image URL if Discogs doesn't have the right one
    - **Use Original** - Proceed with current image anyway (orange button)
    - **Cancel** - Abort the rehost operation completely (gray button)

    **Visual Polish**
    - Hover effects on cover thumbnails with scaling and glow
    - Resolution info displayed on each thumbnail
    - Color-coded quality indicators (green = good, red = poor)
    - Responsive grid layout supporting 2-4 columns based on screen size
    - Dark theme UI matching RED's aesthetic

    ### 🔧 Technical Improvements

    - Added `@connect` permissions for Discogs API and image hosts
    - Improved error handling for failed Discogs searches
    - Better album info parsing with multiple fallback methods
    - Token validation and graceful degradation if API calls fail

    ### 🐛 Bug Fixes

    - Fixed issue where Google Image Search overlay had poor UX
    - Improved handling of edge cases with missing artist/album metadata
    - Better fallback behavior when Discogs returns no results

    ---

    ## Version 5.3 (Previous)

    ### Features
    - Quality validation with automatic poor cover detection
    - Button state changes based on image quality assessment
    - Minimum resolution checks (500px threshold)
    - File size validation (flags suspiciously small files under 8KB)
    - Host verification (prefers ptpimg.me)
    - Dimension checks (flags oversized images)

    ### Functionality
    - Auto-detects and flags covers needing rehost
    - Google Image Search integration for replacements
    - Automatic processing and upload to ptpimg.me
    - Auto-submit workflow for group edits
    - Session persistence for interrupted workflows
    - API key auto-detection for ptpimg.me

    ---

    ## Migration Notes

    ### Upgrading from 5.3 to 6.0

    **What's Changed:**
    - Google Image Search replaced with Discogs integration (much better UX!)
    - No more hardcoded tokens - everything is managed through UI
    - First run will prompt for Discogs token setup

    **What You Need:**
    - A Discogs account (free)
    - A Discogs API token from https://www.discogs.com/settings/developers
    - The script will guide you through setup on first use

    **Breaking Changes:**
    - None! The script is fully backward compatible
    - Existing ptpimg.me API keys are preserved
    - All previous functionality remains intact

  • v5.3 2026-02-09

    Updated max resolution to 3000

  • v5.2 2026-02-08
  • v4.5 2026-02-08
  • v3.1 2026-02-08