fix: only import mpris_server with the feature

This commit is contained in:
talwat 2024-10-17 22:46:45 +02:00
parent 978dfbc5e2
commit cefb95e556

View File

@ -7,7 +7,6 @@ use std::{collections::VecDeque, ffi::CString, sync::Arc, time::Duration};
use arc_swap::ArcSwapOption;
use downloader::Downloader;
use libc::freopen;
use mpris_server::PlayerInterface;
use reqwest::Client;
use rodio::{OutputStream, OutputStreamHandle, Sink};
use tokio::{
@ -19,6 +18,9 @@ use tokio::{
task,
};
#[cfg(feature = "mpris")]
use mpris_server::PlayerInterface;
use crate::{
play::PersistentVolume,
tracks::{self, list::List},