Skip to content

Radio functionality - #631

Merged
NeptuneHub merged 11 commits into
mainfrom
devel
Jun 11, 2026
Merged

Radio functionality#631
NeptuneHub merged 11 commits into
mainfrom
devel

Conversation

@NeptuneHub

@NeptuneHub NeptuneHub commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Added new radio functionality:

  • Alchemy functionality now have alchemy, anchor and now also radio tab;
  • On radio tab you select an anchor, a temperature and a number of result and you can save the radio and also create the radio playlsit online: basically is an alchemy with preset input;
  • On Admin > Schedule task now you can also schedule the creation of the radio.

All the radio playlist will have the suffix _radio and each new radio run will delete all the old one and create the new one.

PR test builds:

Comment thread tasks/song_alchemy.py Fixed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new 'Radio' feature to Song Alchemy, allowing users to persist anchors with specific temperature and result count settings for batch playlist generation. This includes database schema updates, CRUD endpoints, cron scheduling support, frontend UI management, and dedicated unit tests. Additionally, a global search-and-replace was performed to replace special characters and emojis with ASCII equivalents. However, this automated replacement introduced several critical issues: it corrupted a regular expression character class in lyrics_transcriber.py causing import-time crashes, created an empty alternative in a regex in app_chat.py that breaks rating detection, and broke a unit test assertion in test_ai.py.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread lyrics/lyrics_transcriber.py Outdated
Comment thread app_chat.py
Comment thread tests/unit/test_ai.py Outdated
@NeptuneHub

Copy link
Copy Markdown
Owner Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the 'Alchemy Radio' feature, allowing users to save anchors with specific temperature and result count settings to automatically generate playlists. It adds database support, API endpoints, a frontend management tab, and cron integration for scheduled playlist generation. The review feedback highlights several robustness and performance improvements: wrapping playlist deletion calls in try-except blocks to prevent single failures from halting the entire process, validating that the temperature input is a finite number to avoid bypasses, optimizing the frontend save loop to only update modified rows, and running the cron task asynchronously to prevent blocking other scheduled jobs.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread tasks/radio_manager.py Outdated
Comment thread templates/alchemy.html
Comment thread app_alchemy.py
Comment thread tasks/mediaserver.py Outdated
Comment thread app_cron.py
Comment thread app_logging.py Dismissed
Comment thread app_logging.py Dismissed
Comment thread app_logging.py Dismissed
Comment thread app_logging.py Dismissed
Comment thread tasks/clap_analyzer.py Fixed
Comment thread tasks/clap_text_search.py Fixed
@sonarqubecloud

Copy link
Copy Markdown

Comment thread tasks/clap_analyzer.py Dismissed
Comment thread tasks/clap_text_search.py Dismissed
@NeptuneHub
NeptuneHub merged commit 6984c0b into main Jun 11, 2026
22 checks passed
@NeptuneHub
NeptuneHub deleted the devel branch June 11, 2026 11:20
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