示例#1
0
文件: __init__.py 项目: akleiw/KSP
def read_cde_type(path, content_type, asin):
	if content_type == CONTENT_TYPE_MOBIPOCKET:
		return mobi.read_cde_type(path, asin)
	if content_type == CONTENT_TYPE_PDF:
		return 'PDOC'
示例#2
0
文件: __init__.py 项目: MSylvia/KSP
def read_cde_type(path, content_type, asin):
	if content_type in ( _CONTENT_TYPE_MOBI, _CONTENT_TYPE_MOBI8 ):
		return mobi.read_cde_type(path, asin)
	if content_type == _CONTENT_TYPE_PDF:
		return 'PDOC'
示例#3
0
def read_cde_type(path, content_type, asin):
    if content_type in (_CONTENT_TYPE_MOBI, _CONTENT_TYPE_MOBI8):
        return mobi.read_cde_type(path, asin)
    if content_type == _CONTENT_TYPE_PDF:
        return 'PDOC'