Extend DHT scheme with content_id
This commit is contained in:
1 parent
a897737978
commit
8ee1db9cf8
8 files changed
+232
-25
No files matched your search
@@ -46,6 +46,9 @@ fn spec(local_key: &str, kind: ItemKind, name: &str, artists: &[&str]) -> ItemSp
|
||||
track_number: (kind == ItemKind::Track).then_some(10),
|
||||
disc_number: (kind == ItemKind::Track).then_some(1),
|
||||
duration_seconds: (kind == ItemKind::Track).then_some(287.0),
|
||||
content_id: (kind == ItemKind::Track).then(|| {
|
||||
"b3:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef".to_string()
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user