Пример #1
0
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
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'