Skip to content

Commit cb66acc

Browse files
committed
Only add the ogg-direct feature flag if passthrough is built-in!
1 parent 7d30ba0 commit cb66acc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build-spotty.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: ubuntu-24.04
5252

5353
env:
54-
LINUX_FEATURES: "--release --no-default-features --feature default-linux"
54+
LINUX_FEATURES: "--release --no-default-features --features default-linux"
5555

5656
steps:
5757
- name: Checkout

src/spotty.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pub fn check(version_info: String) {
3030
"lms-auth": true,
3131
"no-ap-port": true,
3232
"oauth": true,
33-
"ogg-direct": true,
3433
"podcasts": true,
3534
"save-token": true,
3635
"temp-dir": true,
@@ -39,6 +38,11 @@ pub fn check(version_info: String) {
3938
"zeroconf-port": true
4039
});
4140

41+
#[cfg(feature = "passthrough-decoder")]
42+
if let Value::Object(map) = &mut capabilities {
43+
map.insert("ogg-direct".to_string(), json!(true));
44+
}
45+
4246
println!("{}", capabilities);
4347
exit(0);
4448
}

0 commit comments

Comments
 (0)