mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 07:43:03 +02:00
Merge CLI class into Driver
This commit is contained in:
parent
0cefdbe2e8
commit
426cde07dd
4 changed files with 4 additions and 20 deletions
|
|
@ -7,9 +7,8 @@
|
|||
import os, fnmatch
|
||||
|
||||
from calibre.devices.usbms.driver import USBMS
|
||||
from calibre.devices.usbms.cli import CLI
|
||||
|
||||
class CYBOOKG3(USBMS, CLI):
|
||||
class CYBOOKG3(USBMS):
|
||||
MIME_MAP = {
|
||||
'mobi' : 'application/mobi',
|
||||
'prc' : 'application/prc',
|
||||
|
|
|
|||
|
|
@ -7,9 +7,8 @@
|
|||
import os, fnmatch
|
||||
|
||||
from calibre.devices.usbms.driver import USBMS
|
||||
from calibre.devices.usbms.cli import CLI
|
||||
|
||||
class KINDLE(USBMS, CLI):
|
||||
class KINDLE(USBMS):
|
||||
MIME_MAP = {
|
||||
'azw' : 'application/azw',
|
||||
'mobi' : 'application/mobi',
|
||||
|
|
|
|||
|
|
@ -1,16 +0,0 @@
|
|||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2009, John Schember <john at nachtimwald.com'
|
||||
'''
|
||||
Generic implemenation of the prs500 command line functions. This is not a
|
||||
complete stand alone driver. It is intended to be subclassed with the relevant
|
||||
parts implemented for a particular device.
|
||||
'''
|
||||
|
||||
class CLI(object):
|
||||
|
||||
# ls, cp, mkdir, touch, cat,
|
||||
|
||||
def rm(self, path, end_session=True):
|
||||
path = self.munge_path(path)
|
||||
self.delete_books([path])
|
||||
|
||||
|
|
@ -141,3 +141,5 @@ def extract_book_metadata_by_filename(cls, filename):
|
|||
|
||||
return book_title, book_author, book_mime
|
||||
|
||||
# ls, rm, cp, mkdir, touch, cat
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue