01-17-2011, 03:28 PM | #1 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
|
Question on Comics recipes (GoComics and Comics.com)
In both recipes, num_comics_to_get overrides the oldest_article. So if I put in 5 for num_comics_to_get and 7 for oldest article, I'll still get political cartoons from months ago even though I only want the last week's worth.
I played with the code and it's definitely beyond my abilities to fix it. Is this a tweak that is possible, or something too complicated to do? |
01-17-2011, 03:38 PM | #2 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
The oldest article option is for RSS feeds. I don't think it does anything when you use parse_index, which is what I used for those recipes. You'd have to parse out the date to get date control. The recipe just clicks the "previous" button the num_comics_to_get times and grabs the comics the site delivers up.
|
Advert | |
|
01-17-2011, 03:40 PM | #3 | |
Connoisseur
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
|
Quote:
|
|
01-17-2011, 04:34 PM | #4 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Yes. Alternatively, you could go the route of tracking the previously downloaded comics (URLs) and not get them again. There's code for that that could be adapted.
|
01-17-2011, 05:41 PM | #5 | |
Connoisseur
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
|
Quote:
I'll try to adapt it, but I'm really not sure how. The whole thing is a bit daunting by size... Still, I think this might be the best solution overall. Gonna have to play with it. Thanks for the suggestion. Edit: Can't get it to work. I'm note sure what I'm doing wrong. Last edited by Tegan; 01-17-2011 at 11:47 PM. |
|
Advert | |
|
01-18-2011, 10:44 AM | #6 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
I rewrote the image rotation code. It's here in the sticky reusable code thread:
https://www.mobileread.com/forums/sho...7&postcount=15 If you use it in my comics recipes, remember that you will need to control image sizing with extra CSS. The current recipes set image width to 100%. You may wish to change it to set image height to 100% as this code will always have the longer image dimension set vertically. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-505 Comics | gixxermenace | Sony Reader | 1 | 07-06-2010 10:50 PM |
Comics | diabolic012 | Bookeen | 8 | 11-23-2009 04:07 AM |
Comics and Graphic Novels Kindle question | Von Allan | Workshop | 8 | 10-26-2009 08:30 PM |