mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Tom's Hardware
This commit is contained in:
parent
8523ad9103
commit
f024af31b0
@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2008-2009, Darko Miletic <darko.miletic at gmail.com>'
|
__copyright__ = '2008-2013, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
'''
|
'''
|
||||||
tomshardware.com/us
|
tomshardware.com/us
|
||||||
'''
|
'''
|
||||||
@ -16,21 +14,19 @@ class Tomshardware(BasicNewsRecipe):
|
|||||||
publisher = "Tom's Hardware"
|
publisher = "Tom's Hardware"
|
||||||
category = 'news, IT, hardware, USA'
|
category = 'news, IT, hardware, USA'
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
needs_subscription = True
|
needs_subscription = 'optional'
|
||||||
language = 'en'
|
language = 'en'
|
||||||
|
|
||||||
INDEX = 'http://www.tomshardware.com'
|
INDEX = 'http://www.tomshardware.com'
|
||||||
LOGIN = INDEX + '/membres/'
|
LOGIN = INDEX + '/membres/'
|
||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
use_embedded_content= False
|
use_embedded_content= False
|
||||||
|
|
||||||
html2lrf_options = [
|
conversion_options = {
|
||||||
'--comment', description
|
'comment' : description
|
||||||
, '--category', category
|
, 'tags' : category
|
||||||
, '--publisher', publisher
|
, 'publisher' : publisher
|
||||||
]
|
, 'language' : language
|
||||||
|
}
|
||||||
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
|
|
||||||
|
|
||||||
def get_browser(self):
|
def get_browser(self):
|
||||||
br = BasicNewsRecipe.get_browser(self)
|
br = BasicNewsRecipe.get_browser(self)
|
||||||
@ -50,8 +46,8 @@ class Tomshardware(BasicNewsRecipe):
|
|||||||
]
|
]
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
(u'Latest Articles', u'http://www.tomshardware.com/feeds/atom/tom-s-hardware-us,18-2.xml' )
|
(u'Reviews', u'http://www.tomshardware.com/feeds/rss2/tom-s-hardware-us,18-2.xml')
|
||||||
,(u'Latest News' , u'http://www.tomshardware.com/feeds/atom/tom-s-hardware-us,18-1.xml')
|
,(u'News' , u'http://www.tomshardware.com/feeds/rss2/tom-s-hardware-us,18-1.xml')
|
||||||
]
|
]
|
||||||
|
|
||||||
def print_version(self, url):
|
def print_version(self, url):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user