View Single Post
Old 07-08-2010, 03:54 PM   #2272
schnortz
Junior Member
schnortz began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: Nook
Quote:
Originally Posted by Starson17 View Post
I thought of "another way."
Code:
    def print_version(self, url):
        match = re.search(r'PhotoGallery', url)
        if not match:
            return url

This did the trick for the Photo based links. Thanks a lot.
schnortz is offline