mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update AnandTech
This commit is contained in:
parent
32d347ea73
commit
ec2952aeb1
@ -12,7 +12,7 @@ class anan(BasicNewsRecipe):
|
|||||||
|
|
||||||
title = 'Anandtech'
|
title = 'Anandtech'
|
||||||
description = 'comprehensive Hardware Tests'
|
description = 'comprehensive Hardware Tests'
|
||||||
__author__ = 'Oliver Niesner, Armin Geller' # 2013-09-07 AGE: update
|
__author__ = 'Oliver Niesner, Armin Geller' # 2014-02-27 AGE: update
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
language = 'en'
|
language = 'en'
|
||||||
timefmt = ' [%d %b %Y]'
|
timefmt = ' [%d %b %Y]'
|
||||||
@ -28,8 +28,8 @@ class anan(BasicNewsRecipe):
|
|||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(name='section', attrs={'class':['main_cont']}),
|
dict(name='section', attrs={'class':['main_cont']}),
|
||||||
]
|
]
|
||||||
remove_tags=[ # 2013-09-07 AGE: update
|
remove_tags=[
|
||||||
dict(name='div', attrs={'class':['print', # logo
|
dict(name='div', attrs={'class':['print',
|
||||||
'breadcrumb_area noprint',
|
'breadcrumb_area noprint',
|
||||||
'fl-rt noprint',
|
'fl-rt noprint',
|
||||||
'blog_top_right',]})
|
'blog_top_right',]})
|
||||||
@ -38,4 +38,5 @@ class anan(BasicNewsRecipe):
|
|||||||
feeds = [('Anandtech', 'http://www.anandtech.com/rss/')]
|
feeds = [('Anandtech', 'http://www.anandtech.com/rss/')]
|
||||||
|
|
||||||
def print_version(self,url):
|
def print_version(self,url):
|
||||||
return url.replace("0Cshow0C", "0Cprint0C") # 2013-09-07 AGE: update
|
# return url.replace("0Cshow0C", "0Cprint0C") # 2013-09-07 AGE: update
|
||||||
|
return url.replace("/show/", "/print/") # 2014-02-27 AGE: update
|
||||||
|
Loading…
x
Reference in New Issue
Block a user