diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2009-10-20 16:02:06 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2009-10-20 16:02:06 -0400 |
commit | 247d23bc957892e673b88467ac4fffddf67a31a9 (patch) | |
tree | edd1d8c1f5c62092f5493acef6230ddab175ea3a /framed.py | |
parent | Fixed IMDB cast loading mechanism by using the good old indexing technique of yesteryear. (diff) | |
download | FramedPrototype-247d23bc957892e673b88467ac4fffddf67a31a9.tar.xz FramedPrototype-247d23bc957892e673b88467ac4fffddf67a31a9.zip |
Support actors with many roles.
Diffstat (limited to 'framed.py')
-rw-r--r-- | framed.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -84,9 +84,9 @@ class LoadNewTitles(webapp.RequestHandler): end = imdbList.content.find("</td>", index) if index < 43 or end < 0: break - character = htmlRemove.sub("", imdbList.content[index:end]) - actors.append(actor) - characters.append(character) + for character in htmlRemove.sub("", imdbList.content[index:end]).split(" / "): + actors.append(actor) + characters.append(character) i += 1 if i == 10: break |