inital cbr support

This commit is contained in:
j 2015-03-14 13:05:15 +05:30
commit 6d19dd5e81
6 changed files with 44 additions and 4 deletions

18
oml/media/cbr.py Normal file
View file

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
import os
def cover(path):
data = None
#open rar file and extract first page here
return data
def info(path):
data = {}
data['title'] = os.path.splitext(os.path.basename(path))[0]
#data['pages'] = fixme read rar to count pages
return data