aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/object/src/lib.rs5
-rw-r--r--common/src/node.rs15
2 files changed, 20 insertions, 0 deletions
diff --git a/common/object/src/lib.rs b/common/object/src/lib.rs
index c057163..a73de08 100644
--- a/common/object/src/lib.rs
+++ b/common/object/src/lib.rs
@@ -26,6 +26,11 @@ use std::{collections::BTreeSet, fmt::Display, hash::Hash, marker::PhantomData};
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Tag(pub u32);
+impl Default for Tag {
+ fn default() -> Self {
+ Self::new(b"1111")
+ }
+}
impl Tag {
pub const fn new(fourcc: &[u8; 4]) -> Self {
Self(u32::from_le_bytes(*fourcc))
diff --git a/common/src/node.rs b/common/src/node.rs
index b02f8e8..92b5a5b 100644
--- a/common/src/node.rs
+++ b/common/src/node.rs
@@ -29,6 +29,7 @@ fields! {
NO_STORAGE_SIZE: u64 = b"stsz";
NO_CREDIT: Object = b"crdt"; // multi
NO_SLUG: &str = b"slug";
+ NO_METASOURCE: Object = b"msrc";
CR_NODE: u64 = b"node";
CR_KIND: Tag = b"kind";
@@ -89,9 +90,23 @@ fields! {
IDENT_OMDB: &str = b"omdb";
IDENT_VGMDB_ARTIST: &str = b"vgar";
IDENT_WIKIDATA: &str = b"wkdt";
+
}
enums! {
+ MSOURCE_TRAKT = b"trkt";
+ MSOURCE_INFOJSON = b"infj";
+ MSOURCE_TMDB = b"tmdb";
+ MSOURCE_OMDB = b"omdb";
+ MSOURCE_VGMDB = b"vgmd";
+ MSOURCE_WIKIDATA = b"wkdt";
+ MSOURCE_MUSICBRAINZ = b"mbrz";
+ MSOURCE_TAGS = b"tags";
+ MSOURCE_IMAGE_ATT = b"iatt";
+ MSOURCE_ACOUSTID = b"acid";
+ MSOURCE_MEDIA = b"medi";
+ MSOURCE_EXPLICIT = b"expl";
+
VISI_HIDDEN = b"hidn";
VISI_REDUCED = b"rdcd";
VISI_VISIBLE = b"visi";