Quote:
Originally Posted by ligos
I have been using Calibre for some time and made some of my own recipes. Over a long period I have been using Calibre 0.4.67. and those recipes were working on this Calibre version. I have tried few next Calibre versions but those custom recipes were not working on those trials.
Now I have 0.5.2. Calibre version installed and those recipes do not work either. The following Conversion Error shows up:
The error is the same in every recipe except for the name of the recipe (in the example above DiePresseWirtschaft).
The code of each recipe is a little bit different and it generally presents itself in this fashion:
Code:
from libprs500.ebooks.lrf.web.profiles import DefaultProfile
import re
class DiePresseWirtschaft(DefaultProfile):
title = 'DiePresseWirtschaft'
timefmt = ' [%d %b %Y]'
summary_length = 1000
oldest_article = 1
max_articles_per_feed = 100
max_recursions = 2
html_description = True
no_stylesheets = True
def get_feeds(self):
return [ ('Die Presse Wirtschaft', 'http://www.diepresse.com/rss/Wirtschaft') ]
def print_version(self,url):
return url.replace('index.do?from=rss', 'print.do')
preprocess_regexps = [
(re.compile(r'<script>.*?</script>', re.IGNORECASE | re.DOTALL), lambda match : ''),
(re.compile(r'<H4>.*?</H4>', re.IGNORECASE | re.DOTALL), lambda match : ''),
]
Does anyone know what to do to to start my recipes working again?
|
the only rss feed which works is " http://diepresse.com/rss/home" for all other feeds I get the following error:
---------
Job: **Fetch news from DiePresse**
**tuple**: ('OEBError', u"File 'feed_0/article_4/index.html' does not appear to be (X)HTML")
**Traceback**:
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/parallel.py", line 958, in worker
result = work(client_socket, func, args, kwdargs)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/parallel.py", line 916, in work
etc....
--------
the recipe is as simple as:
[CODE]class AdvancedUserRecipe1238335231(BasicNewsRecipe):
title = u'DiePresse'
oldest_article = 2
max_articles_per_feed = 10
feeds = [(u'home', u'http://diepresse.com/rss/home'),
]
def print_version(self,url):
return url.replace('index.do?from=rss', 'print.do')
[CODE]
this recipe works but if you replace the feed "home" with any other like "sport" or "kultur" it stops working with the above mentioned error.