aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-01-23 17:41:45 +0100
committermetamuffin <metamuffin@disroot.org>2026-01-23 17:41:45 +0100
commit774f64c0789529884dd7a5232f190e347ad29532 (patch)
tree6eb85388837c993a054fba5ca59fdd329f5b5840 /common
parent3671a4e07565c86f8071fb2309f463aeaf684ba3 (diff)
downloadjellything-774f64c0789529884dd7a5232f190e347ad29532.tar
jellything-774f64c0789529884dd7a5232f190e347ad29532.tar.bz2
jellything-774f64c0789529884dd7a5232f190e347ad29532.tar.zst
move locale code to own crate
Diffstat (limited to 'common')
-rw-r--r--common/src/api.rs18
-rw-r--r--common/src/node.rs9
2 files changed, 1 insertions, 26 deletions
diff --git a/common/src/api.rs b/common/src/api.rs
index ee26020..9040852 100644
--- a/common/src/api.rs
+++ b/common/src/api.rs
@@ -84,24 +84,6 @@ enums! {
// pub users: Vec<User>,
// }
-// pub struct LogLine {
-// pub time: DateTime<Utc>,
-// pub module: Option<&'static str>,
-// pub level: LogLevel,
-// pub message: String,
-// }
-
-// url_enum!(
-// #[derive(Serialize, Deserialize, Clone, Copy, PartialEq)]
-// enum LogLevel {
-// Trace = "trace",
-// Debug = "debug",
-// Info = "info",
-// Warn = "warn",
-// Error = "error",
-// }
-// );
-
// #[derive(Default, Serialize, Deserialize)]
// pub struct StatsBin {
// pub runtime: f64,
diff --git a/common/src/node.rs b/common/src/node.rs
index 3163dc5..60544e2 100644
--- a/common/src/node.rs
+++ b/common/src/node.rs
@@ -38,7 +38,7 @@ fields! {
TR_SOURCE: Object = 17 "source";
TR_NAME: &str = 18 "name";
TR_CODEC: &str = 19 "codec";
- TR_LANGUAGE: Tag = 20 "language";
+ TR_LANGUAGE: &str = 20 "language"; // BCP 47
TR_RATE: f64 = 23 "rate";
TR_BIT_DEPTH: u32 = 25 "bit_depth";
TR_CHANNELS: u32 = 28 "channels";
@@ -52,12 +52,6 @@ fields! {
CH_END: f64 = 30 "end";
CH_NAME: &str = 31 "name";
- LANG_UND: &str = 40 "und";
- LANG_NATIVE: &str = 41 "native";
- LANG_ENG: &str = 42 "eng";
- LANG_DEU: &str = 43 "deu";
- LANG_JPN: &str = 44 "jpn";
-
PICT_COVER: &str = 45 "cover";
PICT_BACKDROP: &str = 46 "backdrop";
@@ -95,7 +89,6 @@ fields! {
}
pub type Kind = Tag;
-pub type Language = Tag;
enums! {
VISI_HIDDEN = 76 "hidden";