Implement #5266 (Support for Samsung SNE 60K)

This commit is contained in:
Kovid Goyal 2010-04-17 18:13:06 +05:30
parent c1e1221256
commit 7c8055b888
3 changed files with 42 additions and 1 deletions

View File

@ -447,6 +447,7 @@ from calibre.devices.binatone.driver import README
from calibre.devices.hanvon.driver import N516, EB511 from calibre.devices.hanvon.driver import N516, EB511
from calibre.devices.edge.driver import EDGE from calibre.devices.edge.driver import EDGE
from calibre.devices.teclast.driver import TECLAST_K3 from calibre.devices.teclast.driver import TECLAST_K3
from calibre.devices.sne.driver import SNE
from calibre.ebooks.metadata.fetch import GoogleBooks, ISBNDB, Amazon from calibre.ebooks.metadata.fetch import GoogleBooks, ISBNDB, Amazon
from calibre.library.catalog import CSV_XML, EPUB_MOBI from calibre.library.catalog import CSV_XML, EPUB_MOBI
@ -524,7 +525,8 @@ plugins += [
EB511, EB511,
ELONEX, ELONEX,
TECLAST_K3, TECLAST_K3,
EDGE EDGE,
SNE
] ]
plugins += [x for x in list(locals().values()) if isinstance(x, type) and \ plugins += [x for x in list(locals().values()) if isinstance(x, type) and \
x.__name__.endswith('MetadataReader')] x.__name__.endswith('MetadataReader')]

View File

View File

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL v3'
__copyright__ = '2009, John Schember <john at nachtimwald.com>'
__docformat__ = 'restructuredtext en'
'''
Device driver for Bookeen's Cybook Gen 3
'''
from calibre.devices.usbms.driver import USBMS
class SNE(USBMS):
name = 'Samsung SNE Device Interface'
gui_name = 'Samsung SNE'
description = _('Communicate with the Samsung SNE eBook reader.')
author = 'Kovid Goyal'
supported_platforms = ['windows', 'osx', 'linux']
# Ordered list of supported formats
# Be sure these have an entry in calibre.devices.mime
FORMATS = ['epub', 'txt']
VENDOR_ID = [0x04e8]
PRODUCT_ID = [0x2051]
BCD = [0x0323]
VENDOR_NAME = ''
#WINDOWS_MAIN_MEM = 'MASS_STORAGE'
#WINDOWS_CARD_A_MEM = 'MASS_STORAGE'
MAIN_MEMORY_VOLUME_LABEL = 'SNE Main Memory'
STORAGE_CARD_VOLUME_LABEL = 'SNE Storage Card'
EBOOK_DIR_MAIN = 'Book'
SUPPORTS_SUB_DIRS = True