tramhao / termusic

Music Player TUI written in Rust
GNU General Public License v3.0
1.05k stars 44 forks source link

Fix server / playback feature Backend problems #266

Closed hasezoey closed 6 months ago

hasezoey commented 6 months ago

This PR addresses the issues mentioned in #259 regarding the Backend features. Now server can be compiled with less or same features as playback. Some more details:

note the new playback::MediaInfo struct and method playback::PlayerTrait::media_info has been designed so that we can add new fields without having to add a new function every time (for example if we should start parsing & storing the artist metadata or other metadata from the backend / decoder).

also note that the compile error for no backend being compiled-in (in playback) has not been removed.