From 9f24b72d0ede01cdaf83c24076e1a31b91f53ce2 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Wed, 19 Sep 2012 15:44:16 -0400 Subject: [PATCH] Added some emf elements --- python_apps/media-monitor2/media/metadata/definitions.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/python_apps/media-monitor2/media/metadata/definitions.py b/python_apps/media-monitor2/media/metadata/definitions.py index f77ea51b6..ae81a33f1 100644 --- a/python_apps/media-monitor2/media/metadata/definitions.py +++ b/python_apps/media-monitor2/media/metadata/definitions.py @@ -94,6 +94,12 @@ with md.metadata("MDATA_KEY_MD5") as t: t.optional(False) t.translate(lambda k: file_md5(k['path'], max_length=100)) +with md.metadata("MDATA_KEY_OWNER_ID") as t: + t.depends('owner_id') + +with md.metadata('MDATA_KEY_ORIGINAL_PATH') as t: + t.depends('original_path') + # MDATA_KEY_TITLE is the annoying special case with md.metadata('MDATA_KEY_TITLE') as t: # Need to know MDATA_KEY_CREATOR to know if show was recorded. Value is @@ -101,3 +107,6 @@ with md.metadata('MDATA_KEY_TITLE') as t: t.depends('title','MDATA_KEY_CREATOR') t.max_length(512) +with md.metadata('MDATA_KEY_LABEL') as t: + t.depends('label') + t.max_length(512)