summaryrefslogtreecommitdiffstats
path: root/framed.py
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2009-10-20 16:02:06 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2009-10-20 16:02:06 -0400
commit247d23bc957892e673b88467ac4fffddf67a31a9 (patch)
treeedd1d8c1f5c62092f5493acef6230ddab175ea3a /framed.py
parentFixed IMDB cast loading mechanism by using the good old indexing technique of yesteryear. (diff)
downloadFramedPrototype-247d23bc957892e673b88467ac4fffddf67a31a9.tar.xz
FramedPrototype-247d23bc957892e673b88467ac4fffddf67a31a9.zip
Support actors with many roles.
Diffstat (limited to 'framed.py')
-rw-r--r--framed.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/framed.py b/framed.py
index 75b3553..bdb6371 100644
--- a/framed.py
+++ b/framed.py
@@ -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