diff options
Diffstat (limited to 'fbin/db.py')
-rw-r--r-- | fbin/db.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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] |