summaryrefslogtreecommitdiff
path: root/plugin.video.vrt.nu/resources/lib/vrtplayer/metadatacreator.py
diff options
context:
space:
mode:
authorpietje666 <martijn.moreel@gmail.com>2017-05-05 10:57:20 +0200
committerMartijn Kaijser <martijn@xbmc.org>2017-05-05 09:57:20 +0100
commita0610f87083df8e16c8c5886ca0a0942ffd52562 (patch)
tree485e2534b8b866740890f4e23d24dc43b9e8ef14 /plugin.video.vrt.nu/resources/lib/vrtplayer/metadatacreator.py
parent650a2595e8041a0ed4aa7f297981d383e391ea0c (diff)
[plugin.video.vrt.nu] 0.0.1 (#1189)
[plugin.video.vrt.nu] 0.0.1
Diffstat (limited to 'plugin.video.vrt.nu/resources/lib/vrtplayer/metadatacreator.py')
-rw-r--r--plugin.video.vrt.nu/resources/lib/vrtplayer/metadatacreator.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/plugin.video.vrt.nu/resources/lib/vrtplayer/metadatacreator.py b/plugin.video.vrt.nu/resources/lib/vrtplayer/metadatacreator.py
new file mode 100644
index 0000000..7a05913
--- /dev/null
+++ b/plugin.video.vrt.nu/resources/lib/vrtplayer/metadatacreator.py
@@ -0,0 +1,30 @@
+class MetadataCreator:
+
+ def __init__(self):
+ self._duration = None
+ self._plot = None
+
+ @property
+ def duration(self):
+ return self._duration
+
+ @duration.setter
+ def duration(self, value):
+ self._duration = value
+
+ @property
+ def plot(self):
+ return self._plot
+
+ @plot.setter
+ def plot(self, value):
+ self._plot = value.strip()
+
+ def get_video_dictionary(self):
+ video_dictionary = dict()
+ if self.plot is not None:
+ video_dictionary["plot"] = self.plot
+ if self.duration is not None:
+ video_dictionary["duration"] = self.duration
+ return video_dictionary
+