View Single Post
Old 08-25-2010, 10:36 PM   #2523
TonytheBookworm
Addict
TonytheBookworm is on a distinguished road
 
TonytheBookworm's Avatar
 
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
Starson17, I thought I was getting the knack of this but apparently not. If it is an indent problem then hit me. I don't think it is though but I can't seem to understand why the print is not being appended to the url. I looked at the newyorker as an example and I to the most part use the same print_version()

my code
Spoiler:
Code:
class AdvancedUserRecipe1282101454(BasicNewsRecipe):
    title = 'The TMZ'
    __author__ = 'TonytheBookworm'
    description = 'Celeb Gossip and News'
    publisher = 'The TMZ'
    category = 'news, celebrity, USA'
    oldest_article = 1
    max_articles_per_feed = 100
    no_stylesheets = True
    remove_javascript = True
    
    extra_css = '''
                    h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
                    h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
                    p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
                    body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
		        '''
    
    
   
              
                  
                  
    feeds          = [
                       ('TOP 20', 'http://www.tmz.com/rss.xml'),
                       ('Exclusives', 'http://www.tmz.com/category/exclusives/rss.xml')
                    ]

    def print_version(self, url):
       print_url = url +'print'
       print 'print_url is: ', print_url
       return print_url


I also am using the the test you gave me of
ebook-convert tmz.recipe output_dir --test -vv > myrecipe.txt

I don't really see any errors in there and I also don't see the print_url is: ... either
Sorry to bug you I will get it one of these days.
TonytheBookworm is offline