View Single Post
Old 02-28-2012, 09:35 AM   #5
adoucette
Member
adoucette doesn't litteradoucette doesn't litter
 
Posts: 24
Karma: 140
Join Date: Sep 2011
Device: Nook Color (rooted?)
No, same error - I neglected 'cov' just here on the forum - my bad.
Here's the text of the recipe with the syntax error:
Code:
class AdvancedUserRecipe1330393641(BasicNewsRecipe):
    title          = u'abc'
    oldest_article = 30
    max_articles_per_feed = 100
    auto_cleanup = True
    feeds          = [I took these out for the forum post here to save space]
    def print_version(self, url):
       return url.replace('/article/', '/printarticle/')
    def get_cover_url(self):
        cover_url = None
        soup = self.index_to_soup('http://www.abc.com')
        cov = soup.find('img', src=re.compile(r'\w*?cover\w{1,22}\.jpg')
        if cov is not None:
            self.cover_url = cov['src']
and the error I get is
Code:
calibre, version 0.8.41
ERROR: Invalid input: <p>Could not create recipe. Error:<br>invalid syntax (<string>, line 13)

Last edited by adoucette; 02-29-2012 at 07:17 AM.
adoucette is offline   Reply With Quote