View Single Post
Old 07-06-2010, 03:12 PM   #2265
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by nook.life View Post
Starson17, you are the best. The recipe works perfectly now. It is centered and everything. Thank you so, so much for all of the time you put into this.
I'm glad it's working for you. I realized after I wrote that little bit of code that there's a predefined method that I had never used that would have done it for you more easily:

Code:
remove_attributes = ['style']
As an aside, I often wish I could have the recipe accept some settings from the user, other than just the username and password. In this recipe, the images are rotated, which makes sense for someone reading on a handheld device, but not for someone who reads on a desktop. It would be nice to simply have an option to rotate images or not, instead of requiring two different recipes that are basically the same.

Most recipes have optional settings, such as the number of comics to download, the number of articles to retrieve, etc. It would be nice to have a settings screen associated with the recipe (like the user/password) that can be set by the user when they schedule a builtin. The way it works now, the user has to load the builtin recipe in the recipe editor, modify the code, save the recipe, go to the News fetcher and schedule the user modified version.
Starson17 is offline