View Single Post
Old 08-01-2010, 04:08 PM   #2375
Flexicat
Junior Member
Flexicat began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2010
Device: Kobo
Thank you!

Quote:
Notice Code tags and Spoiler tags
I shall try to be tidier.

Here is my adjusted code:
Spoiler:

Code:
class AdvancedUserRecipe1280684448(BasicNewsRecipe):
    title          = u'Twisting the Hellmouth'
    oldest_article = 7
    max_articles_per_feed = 100

    feeds          = [(u'Latest', u'http://www.tthfanfic.org/rss.php')]

 def print_version(self, url):
        split1 = url.split("/")
        xxx = split1[3]
        split2 = xxx.split("-")
        artid =  split2[1]
        print "artid is: ', artid
        return 'http://www.tthfanfic.org/wholestory.php?no=' + artid + '&format=print'


I get the error message

"ERROR: Invalid input: Could not create recipe. Error: unindent does not match any outer indentation level (recipe8.py, line 11)" when trying to update it.

Am I missing some sort of closing tag?

Also, what are the "numbers/subscripts" you mention? Are they the "/" marks in the URL?

Thank you
Flexicat is offline