github realbestia1/erdb v0.4.80

4 hours ago

0.4.80

  • Cap quality badge height and bump cache version (6362a21)
    Limit quality badge height by replacing Math.max(32, ...) with Math.min(40, ...) in lib/imageRenderer.ts so badges are capped at 40px instead of forcing a 32px minimum. Bump FINAL_IMAGE_RENDERER_CACHE_VERSION to 'poster-backdrop-logo-thumbnail-v183' in lib/routeConfig.ts to invalidate caches after the rendering change.

  • Add glass style gradients & clip paths (b78e014)
    Implement a new "glass" rendering style for badge SVGs: buildRect now handles 'plain' and 'glass' styles by emitting defs (clipPath, linearGradients, shadow filter) and glass-filled/bordered rects with unique IDs. Wrap text/content in clip-path groups for glass badges across multiple badge generators and add capsule-level defs/clipPath in buildBadgeSvg with a generated clipPathId. Also simplify chrome handling by removing strokeOpacity passthrough. Finally, bump FINAL_IMAGE_RENDERER_CACHE_VERSION to 'poster-backdrop-logo-thumbnail-v171'. These changes enable Apple-style glass appearance with proper clipping, borders, and shadowing.

  • Support stream badge icons, parsing & caching (9d52ddc)
    Add broad support for stream/quality badges including icons, improved filename parsing, and stronger caching.

    • ratingBadgeLogic: expanded StreamBadgeKey list, added STREAM_BADGE_META entries (labels, colors, icon URLs, iconWidthRatio), defined STREAM_BADGE_ORDER, categories and regex-based STREAM_BADGE_PATTERNS; replaced legacy flag handling with pattern-based parsing and scoring to choose best stream flags; avoid duplicate category badges.
    • badgeLayoutSvg: render badges from provided icon data URIs, adjust default fills to white, and refine SVG generation for various badges.
    • imageAssetPipeline: introduce PROVIDER_ICON_CACHE_VERSION and include size/tint/version in storage keys; support generating/resizing provider icons to requested output dimensions, corner radius based on actual size, optional tinting, and updated read/write to object storage.
    • imageRenderer: fetch provider icons for quality badges (tinted when appropriate), compute variable badge widths from metadata, adapt layout to variable widths with iterative fitting, and pass icon data into SVG builder.
    • workspace-controls-panel: remove the Quality Badge Style dropdown in certain simple poster preset cases.
    • streamBadges & routeConfig: bump cache keys/versions for stream badges and final image renderer to force cache invalidation.
    • package.json: bump package version to 0.4.80.

    These changes enable icon-based quality badges with proper resizing/tinting, more accurate stream detection from filenames, and safer caching/versioning.
    Full Changelog: v0.4.79...v0.4.80

Don't miss a new erdb release

NewReleases is sending notifications on new releases.