05-26-2010, 10:27 AM | #1 |
Member
Posts: 20
Karma: 1000
Join Date: Oct 2009
Device: kindle 3 wifi
|
Need help regarding custom recipe
I have made a recipe for www.qj.net site using its rss feed. It is working as expected but there is one major flaw that i can't seem to correct. Heading of any post is not visible in the ebooks because its font color is white (white font text on white background = not visible).
I tried to correct it using css (h2,.aHead {color: #000000;}) but i wont work. Headings in actual site are also white. Can u please help me correct this. ----------------------------------------------------------------- from calibre.web.feeds.news import BasicNewsRecipe class QJ(BasicNewsRecipe): title = 'QJ' oldest_article = 7 max_articles_per_feed = 2 language = 'en' encoding = 'utf8' publisher = 'Quick Jump' category = 'video games,ps3,pc,psp,xbox 360' __author__ = 'gagsays' #cover_url = 'http://www.qj.net/img/ps3.jpg' description = 'Quick Jump Network' timefmt = ' [%a, %d %b, %Y]' no_stylesheets = True remove_stylesheets = True use_embedded_content = False conversion_options = { 'base_font_size' : 16, 'title' : title, 'tags' : category, 'author' : __author__, 'comment' : description, 'publisher' : publisher, } ################################## extra_css = ''' body {color: #000000;font-size: medium;} h2 {color: #000000;} strong {font-size: large;text-decoration: underline; font-weight: bold; font-style:italic;color:#454545;padding-left:5px;} .aHead {color: inherit;font-size: x-large; text-align: center;} p + p { margin-top: 0.25em; } img{margin-bottom: 0.25em;} a { text-decoration: none;} .contentheading {} .pfirst {font-size: small; text-align: left; text-decoration:none;} .posted {font-size: small; text-align: left; text-decoration:none;} table.v4 {text-align: left; font-size: small;} ''' ################################## keep_only_tags = [ dict(name='div', attrs={'class':['articles']}) #,dict(name='div', attrs={'id':['comments','comments-list-0']}) #,dict(name='div',attrs={'class':'comments-list'}) #,dict(name='a',attrs={'class':'refresh'}) ] remove_tags_after = [ dict(name='div', attrs={'id':['comments-list-0']}) ,dict(name='div',attrs={'id':'shoppingapi'}) ] remove_tags = [ dict(name=['script']) ,dict(name='div', attrs={'class':['misc','top15','toplinks']}) ,dict(name='div', attrs={'class':['footer','categories','footer']}) ,dict(name='div', attrs={'align':'center'}) ,dict(name='span', attrs={'class':['comments-buttons','comment-date','plast','jSp']}) #comments ,dict(name='div', attrs={'id':['jc']}) #comments #,dict(name='td', attrs={'class':'v4'}) #votes ] feeds = [ (u'PS 3', u'http://feeds.feedburner.com/QjPlaystation3NewsOpinionsBlogsandMore?format=xml' ) #,('PSP', 'http://feeds.feedburner.com/QjPSPUpdatesNewsOpinionsBlogsandMore?format=xml') #,('PC', 'http://feeds.feedburner.com/QjPCGamesNewsOpinionsBlogsandMore?format=xml') ] ------------------------------------------------------------------- |
05-26-2010, 03:22 PM | #2 |
Member
Posts: 20
Karma: 1000
Join Date: Oct 2009
Device: kindle 3 wifi
|
bump::
please help me
|
Advert | |
|
05-26-2010, 04:55 PM | #3 |
Beepbeep n beebeep, yeah!
Posts: 11,726
Karma: 8255450
Join Date: Apr 2008
Location: La Crosse, Wisconsin, aka America's IceBox
Device: iThingie, KmkII, I miss Zelda!
|
Just a bit of patience is needed, gagsays. The folks who answer questions here are from all over the globe and your question will be addressed when someone has ability to answer it. If it hasn't been addressed in, say two days, then go ahead and bump it. Bit within five hours is probably expecting too much from the answer folks here...
|
05-26-2010, 07:48 PM | #4 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
You might want to post this in the Custom Recipe sticky thread. Folks subscribed to this thread have experience with creating custom recipes.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Recipe for CNBC Magazine | nittecat | Calibre | 1 | 02-28-2010 04:14 AM |
Reversing articles order in a custom news recipe? | mairabc | Calibre | 5 | 12-12-2009 05:24 PM |
Custom Recipe | CABITSS | Introduce Yourself | 2 | 09-22-2009 10:30 AM |
Custom Recipe | CABITSS | Calibre | 3 | 09-22-2009 10:29 AM |
A problem with custom recipe | joshdu1125 | Calibre | 1 | 05-03-2009 09:31 PM |