Skip to content

Redesign search: iTunes US + Spotify fallback, fix retry duplicates, strip BBCode#23

Merged
bigspawn merged 3 commits intomasterfrom
fix/spotify-image-other
Mar 14, 2026
Merged

Redesign search: iTunes US + Spotify fallback, fix retry duplicates, strip BBCode#23
bigspawn merged 3 commits intomasterfrom
fix/spotify-image-other

Conversation

@bigspawn
Copy link
Copy Markdown
Owner

Summary

  • Search redesign: iTunes US only (no more 4-country fallback with 12s sleep). On miss, Spotify search → Odesli by URL for cross-platform links. 2-3 HTTP requests instead of 6 + 0s sleep instead of 12s.
  • Fix duplicate images on retry: SendReleaseNews now deletes the orphaned image before retry (same as SendNews already did), preventing duplicate photos in Telegram on FloodError.
  • Strip BBCode from RSS titles: Removes paired BBCode tags ([bb]...[/bb], [b]...[/b], etc.) from RSS feed titles while preserving music markers like [EP], [Single], [Deluxe Edition].
  • Relax iTunes requirement: CheckRequiredPlatforms no longer hard-fails when iTunes is missing — only fails if zero required platforms found.
  • Go 1.25: Updated go.mod, Dockerfile, and CI workflow.

Test plan

  • go build ./...
  • go test ./... — all pass
  • Unit tests for new GetLinks flow (5 cases), retry logic (4 cases), stripBBCode (14 cases)
  • Production: verify faster search, Spotify fallback via Odesli, no duplicate images

@bigspawn bigspawn merged commit c30d89b into master Mar 14, 2026
2 checks passed
@bigspawn bigspawn deleted the fix/spotify-image-other branch March 14, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant