8000 Playlist improvements by wizzomafizzo · Pull Request #212 · ZaparooProject/zaparoo-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Playlist improvements #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 24, 2025
Merged

Playlist improvements #212

merged 8 commits into from
Apr 24, 2025

Conversation

wizzomafizzo
Copy link
Member

This is an overhaul of the existing playlist system.

  • Existing .play, .next and .previous commands now work as expected.
  • New control commands added: .goto, .stop and .pause.
  • New .load command added to load playlist without playing.
  • New .open command to load and open playlist in a picker widget.
  • Support to use .pls files added.
  • It's now valid to run commands with no arguments (and with no colon).
  • Commands now have a more robust system to report side effects.
  • The advanced argument launcher may be user to override auto system detection.

@wizzomafizzo wizzomafizzo requested a review from Copilot April 24, 2025 06:55
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR overhauls the playlist system and refines command handling across platforms. Key changes include updates to the Playlist structure (adding fields like ID and Playing, and a new PlaylistMedia type) and modifications to the ForwardCmd method signature in several platform implementations to return a CmdResult alongside an error. Additionally, improvements were made in the UI widget code to better handle picker selections.

Reviewed Changes

Copilot reviewed 29 out of 30 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/service/playlists/playlists.go Refactored Playlist structure and added support for new commands.
pkg/platforms/windows/platform.go, steamos, retropie, recalbox, mac, linux, libreelec, chimeraos, bazzite, batocera Updated ForwardCmd to return (CmdResult, error) for improved command feedback.
pkg/platforms/mistex/platform.go, commands.go, and pkg/platforms/mister/platform.go, launchers.go, commands.go Updated command mapping and error handling across platform-specific implementations.
pkg/platforms/platforms.go Introduced the CmdResult type and updated the Platform interface.
pkg/configui/widgets/widgets.go, pkg/configui/widgets/models/models.go Enhanced Picker UI functionality and data model by adding a Selected field.
Files not reviewed (1)
  • go.mod: Language not supported

@wizzomafizzo wizzomafizzo marked this pull request as ready for review April 24, 2025 06:56
@wizzomafizzo wizzomafizzo merged commit 01599ae into main Apr 24, 2025
@wizzomafizzo wizzomafizzo deleted the wizzo/playlist-picker branch April 24, 2025 06:56
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
0