Thread: web2lrf
View Single Post
Old 12-02-2007, 06:23 AM   #87
StDo
Translating Calibre...
StDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with others
 
StDo's Avatar
 
Posts: 657
Karma: 2902
Join Date: Aug 2007
Location: ER.de
Device: [PRS-500], PB360
Quote:
Originally Posted by kovidgoyal View Post
tokens = url.split(',')
tokens[-2:-1] = ['-druck']
url = ','.join(tokens)
Where do I have to implement that?

Somewhere after:
Code:
    def get_feeds(self): 
        return [ ('Spiegel Online', 'http://www.spiegel.de/schlagzeilen/rss/0,5291,,00.xml') ] 
    
    def print_version(self,url):
        return url.replace
Tried different versions, however I am getting an error:
Quote:
SyntaxError: invalid syntax
StDo is offline   Reply With Quote