mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add support for the eClicto
This commit is contained in:
parent
1addaff034
commit
6752c584e8
@ -29,18 +29,18 @@ class Starbulletin(BasicNewsRecipe):
|
|||||||
, '--category' , category
|
, '--category' , category
|
||||||
, '--publisher' , publisher
|
, '--publisher' , publisher
|
||||||
]
|
]
|
||||||
|
|
||||||
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
|
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
|
||||||
|
|
||||||
keep_only_tags = [ dict(name='div', attrs={'id':'storyColoumn'}) ]
|
keep_only_tags = [ dict(name='div', attrs={'id':'storyColoumn'}) ]
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name=['object','link'])
|
dict(name=['object','link'])
|
||||||
,dict(name='span', attrs={'id':'printdesc'})
|
,dict(name='span', attrs={'id':'printdesc'})
|
||||||
,dict(name='div' , attrs={'class':'lightGreyBox storyTools clearAll'})
|
,dict(name='div' , attrs={'class':'lightGreyBox storyTools clearAll'})
|
||||||
,dict(name='div' , attrs={'id':'breadcrumbs'})
|
,dict(name='div' , attrs={'id':'breadcrumbs'})
|
||||||
]
|
]
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
(u'Headlines', u'http://www.starbulletin.com/starbulletin_headlines.rss' )
|
(u'Headlines', u'http://www.starbulletin.com/starbulletin_headlines.rss' )
|
||||||
,(u'News', u'http://www.starbulletin.com/news/index.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'
|
mtag = '\n<meta http-equiv="Content-Language" content="en"/>\n'
|
||||||
soup.head.insert(0,mtag)
|
soup.head.insert(0,mtag)
|
||||||
return soup
|
return soup
|
||||||
|
|
||||||
|
@ -404,7 +404,7 @@ from calibre.devices.bebook.driver import BEBOOK, BEBOOK_MINI
|
|||||||
from calibre.devices.blackberry.driver import BLACKBERRY
|
from calibre.devices.blackberry.driver import BLACKBERRY
|
||||||
from calibre.devices.cybookg3.driver import CYBOOKG3, CYBOOK_OPUS
|
from calibre.devices.cybookg3.driver import CYBOOKG3, CYBOOK_OPUS
|
||||||
from calibre.devices.eb600.driver import EB600, COOL_ER, SHINEBOOK, \
|
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.iliad.driver import ILIAD
|
||||||
from calibre.devices.irexdr.driver import IREXDR1000
|
from calibre.devices.irexdr.driver import IREXDR1000
|
||||||
from calibre.devices.jetbook.driver import JETBOOK
|
from calibre.devices.jetbook.driver import JETBOOK
|
||||||
@ -480,6 +480,7 @@ plugins += [
|
|||||||
GER2,
|
GER2,
|
||||||
ITALICA,
|
ITALICA,
|
||||||
SHINEBOOK,
|
SHINEBOOK,
|
||||||
|
ECLICTO,
|
||||||
EB600,
|
EB600,
|
||||||
]
|
]
|
||||||
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 \
|
||||||
|
@ -129,3 +129,19 @@ class ITALICA(EB600):
|
|||||||
MAIN_MEMORY_VOLUME_LABEL = 'Italica Main Memory'
|
MAIN_MEMORY_VOLUME_LABEL = 'Italica Main Memory'
|
||||||
STORAGE_CARD_VOLUME_LABEL = 'Italica Storage Card'
|
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 = ''
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user