mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Implement #5266 (Support for Samsung SNE 60K)
This commit is contained in:
parent
c1e1221256
commit
7c8055b888
@ -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')]
|
||||||
|
0
src/calibre/devices/sne/__init__.py
Normal file
0
src/calibre/devices/sne/__init__.py
Normal file
39
src/calibre/devices/sne/driver.py
Normal file
39
src/calibre/devices/sne/driver.py
Normal 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
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user