コード例 #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'