summaryrefslogtreecommitdiff
path: root/fbin/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'fbin/db.py')
-rw-r--r--fbin/db.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fbin/db.py b/fbin/db.py
index 5323134..58bf8ab 100644
--- a/fbin/db.py
+++ b/fbin/db.py
@@ -98,6 +98,9 @@ class File(Base):
def is_image(self):
return self.get_mime_type().startswith('image')
+ def is_video(self):
+ return self.get_mime_type().startswith('video')
+
@property
def ext(self):
return os.path.splitext(self.filename)[1]