Add support for the eClicto

This commit is contained in:
Kovid Goyal 2009-12-18 09:51:51 -07:00
parent 1addaff034
commit 6752c584e8
3 changed files with 23 additions and 6 deletions

View File

@ -29,18 +29,18 @@ class Starbulletin(BasicNewsRecipe):
, '--category' , category
, '--publisher' , publisher
]
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
keep_only_tags = [ dict(name='div', attrs={'id':'storyColoumn'}) ]
remove_tags = [
dict(name=['object','link'])
,dict(name='span', attrs={'id':'printdesc'})
,dict(name='div' , attrs={'class':'lightGreyBox storyTools clearAll'})
,dict(name='div' , attrs={'id':'breadcrumbs'})
,dict(name='div' , attrs={'id':'breadcrumbs'})
]
feeds = [
(u'Headlines', u'http://www.starbulletin.com/starbulletin_headlines.rss' )
,(u'News', u'http://www.starbulletin.com/news/index.rss' )
@ -57,4 +57,4 @@ class Starbulletin(BasicNewsRecipe):
mtag = '\n<meta http-equiv="Content-Language" content="en"/>\n'
soup.head.insert(0,mtag)
return soup

View File

@ -404,7 +404,7 @@ from calibre.devices.bebook.driver import BEBOOK, BEBOOK_MINI
from calibre.devices.blackberry.driver import BLACKBERRY
from calibre.devices.cybookg3.driver import CYBOOKG3, CYBOOK_OPUS
from calibre.devices.eb600.driver import EB600, COOL_ER, SHINEBOOK, \
POCKETBOOK360, GER2, ITALICA
POCKETBOOK360, GER2, ITALICA, ECLICTO
from calibre.devices.iliad.driver import ILIAD
from calibre.devices.irexdr.driver import IREXDR1000
from calibre.devices.jetbook.driver import JETBOOK
@ -480,6 +480,7 @@ plugins += [
GER2,
ITALICA,
SHINEBOOK,
ECLICTO,
EB600,
]
plugins += [x for x in list(locals().values()) if isinstance(x, type) and \

View File

@ -129,3 +129,19 @@ class ITALICA(EB600):
MAIN_MEMORY_VOLUME_LABEL = 'Italica Main Memory'
STORAGE_CARD_VOLUME_LABEL = 'Italica Storage Card'
class ECLICTO(EB600):
name = 'eClicto device interface'
gui_name = 'eClicto'
FORMATS = ['epub', 'pdf', 'txt']
VENDOR_NAME = 'ECLICTO'
WINDOWS_MAIN_MEM = 'EBOOK'
WINDOWS_CARD_A_MEM = 'EBOOK'
EBOOK_DIR_MAIN = 'Text'
EBOOK_DIR_CARD_A = ''