17 lines
297 B
Python
17 lines
297 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
|
|
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
|
|
|