Closed JarbasAl closed 3 months ago
The recent changes involve deprecating the extract_stream
method in the MediaEntry
class and enhancing the set_now_playing
method in the Player
class for better track management. Additionally, updates to the requirements.txt
file reflect a newer version of the ovos-workshop
dependency. Some unit tests have been removed or modified, indicating a shift in testing strategies and coverage for the AudioService
functionality.
File | Change Summary |
---|---|
ovos_plugin_common_play/ocp/media.py |
extract_stream method in MediaEntry is now deprecated; docstring updated. |
ovos_plugin_common_play/ocp/player.py |
Improved set_now_playing method for better track handling; refined logic for updating playlists and tracks. Updated validate_stream method to simplify error handling. |
requirements/requirements.txt |
Updated ovos-workshop version from >=0.0.16a39, < 0.1.0 to >=0.0.16a48, < 0.1.0 . |
test/unittests/test_audio_backends.py |
Removed test_native_ocp method, indicating a potential refactoring of audio backend tests. |
test/unittests/test_external_ocp.py |
Removed test_external_ocp method, reflecting changes in how AudioService configuration is tested. |
test/unittests/test_ocp_player.py |
Modified test_set_now_playing to avoid calling reset on now_playing ; updated preferred audio backends. |
sequenceDiagram
participant User
participant Player
participant MediaEntry
participant PluginStream
User->>Player: set_now_playing(track)
Player->>MediaEntry: extract_stream()
MediaEntry-->>Player: return media info
Player->>PluginStream: update playlist
Player->>User: now playing updated
π° Change is here, oh what delight,
With deprecations shining bright!
The player's tunes now flow with grace,
As rabbits hop in joyful race.
Let's celebrate with a happy cheer,
For every change, we hold so dear! πΆβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
fix position of "now playing" handling
fix PluginStream to MediaEntry extraction
fix Playlist of PluginStream
Summary by CodeRabbit
New Features
Deprecation Notices
extract_stream
method to inform users of its phasing out.Bug Fixes
validate_stream
method.Tests