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)