Skip to content

feat: add play preview feat - deleted some info messages#5

Merged
cargaona merged 1 commit intomasterfrom
feature/play-example
Jul 24, 2025
Merged

feat: add play preview feat - deleted some info messages#5
cargaona merged 1 commit intomasterfrom
feature/play-example

Conversation

@cargaona
Copy link
Copy Markdown
Owner

Add Audio Preview Feature for Track Playback

Summary

  • Implemented 30-second audio preview functionality using pygame for track previews
  • Added preview controls with p , play, stop commands
  • Enhanced artist profile view with preview support for top tracks (t commands)
  • Integrated preview URLs from Deezer API responses
  • Added pygame dependency and environment setup to suppress startup messages

Key Changes

  • New preview player module (dmx/preview_player.py): Complete audio preview system with download caching and playback controls
  • Enhanced interactive commands: Added preview commands to CLI with visual indicators for available previews
  • Artist profile improvements: Top tracks now support direct preview playback with t1, t2 syntax
  • API integration: Modified DeemixClient to extract and provide preview_url from track data
  • Environment setup: Added pygame initialization and warning suppression in main.py
  • Dependencies: Added pygame to pyproject.toml and Nix flake for audio playback support

@cargaona cargaona merged commit d4230e0 into master Jul 24, 2025
0 of 5 checks passed
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.

2 participants