Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
391a554736 | ||
|
|
fa5f25e69b |
No files matched your search
Generated
+2
-2
@@ -2992,7 +2992,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "musyx"
|
name = "musyx"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"block2 0.6.2",
|
"block2 0.6.2",
|
||||||
"directories",
|
"directories",
|
||||||
@@ -6671,7 +6671,7 @@ checksum = "e01738255b5a16e78bbb83e7fbba0a1e7dd506905cfc53f4622d89015a03fbb5"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ym-api"
|
name = "ym-api"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"serde",
|
"serde",
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ resolver = "3"
|
|||||||
members = ["crates/ym-api", "crates/musyx"]
|
members = ["crates/ym-api", "crates/musyx"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
publish = false
|
publish = false
|
||||||
|
|||||||
@@ -426,11 +426,16 @@ impl YmClient {
|
|||||||
.unwrap_or_default())
|
.unwrap_or_default())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// `settings3` takes JSON only: yamuse's form body gets `415 unsupported-media-type`.
|
||||||
pub async fn set_wave_settings(&self, station: &str, settings: WaveSettings) -> Result<()> {
|
pub async fn set_wave_settings(&self, station: &str, settings: WaveSettings) -> Result<()> {
|
||||||
let (mood, diversity, language) = settings.to_yamuse();
|
let (mood, diversity, language) = settings.to_yamuse();
|
||||||
self.inner
|
let body = serde_json::json!({
|
||||||
.rotor_set_station_settings(station, mood, diversity, language, yamuse::StationType::Rotor)
|
"moodEnergy": mood.as_str(),
|
||||||
.await?;
|
"diversity": diversity.as_str(),
|
||||||
|
"language": language.as_str(),
|
||||||
|
"type": yamuse::StationType::Rotor.as_str(),
|
||||||
|
});
|
||||||
|
self.post_json(&format!("/rotor/station/{station}/settings3"), &body).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Yuriy Panov <uriy.panov@gmail.com>
|
# Maintainer: Yuriy Panov <uriy.panov@gmail.com>
|
||||||
# Builds the checked-out commit of this repository: run `makepkg -si` in this directory.
|
# Builds the checked-out commit of this repository: run `makepkg -si` in this directory.
|
||||||
pkgname=musyx
|
pkgname=musyx
|
||||||
pkgver=0.3.1
|
pkgver=0.3.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Desktop player for Yandex Music (unofficial)'
|
pkgdesc='Desktop player for Yandex Music (unofficial)'
|
||||||
arch=('x86_64' 'aarch64')
|
arch=('x86_64' 'aarch64')
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
</categories>
|
</categories>
|
||||||
<content_rating type="oars-1.1"/>
|
<content_rating type="oars-1.1"/>
|
||||||
<releases>
|
<releases>
|
||||||
|
<release version="0.3.2" date="2026-10-30"/>
|
||||||
<release version="0.3.1" date="2026-10-26"/>
|
<release version="0.3.1" date="2026-10-26"/>
|
||||||
<release version="0.3.0" date="2026-10-22"/>
|
<release version="0.3.0" date="2026-10-22"/>
|
||||||
<release version="0.2.1" date="2026-10-18"/>
|
<release version="0.2.1" date="2026-10-18"/>
|
||||||
|
|||||||
Reference in new issue
Block a user