On May 20, Ataru Moroboshi <[EMAIL PROTECTED]> wrote:

> for w in m["writer"]:
>     print w.get("name"), ":", w.currentRole
> 
> I get:
> Gene Roddenberry :
> Gene Roddenberry :
> Robert Blees :

That's correct.
I have not found a reasonable way to understand what should be
considered a role/duty (stored in 'currentRole' instance variable)
and what to consider a note (stored in 'notes') other than trusting
the web pages: if it's enclosed in parentheses it's a note, otherwise
it's a role/duty.

So you should try:
for w in m["writer"]:
    print w.get("name"), ":", w.currentRole, ":", w.notes

> I get:
> Gene Roddenberry :
> Gene Roddenberry  story and :
> D.C. Fontana  teleplay :

Yup, there was an error, here.
I hope to have fixed this in the CVS; I've also added your name
to the credits.
To tell the truth I don't like at all that "story" and "teleplay"
end up in 'currentRole', but for what I know it's the data
showed in the IMDb pages that are wrong; these lines:

==================================================
Writing credits
Gene Roddenberry                (creator)

Gene Roddenberry                story and
D.C. Fontana            teleplay
==================================================

must have been like that (in my mind, at least...):

==================================================
Writing credits
Gene Roddenberry        (creator)

Gene Roddenberry        (story) and
D.C. Fontana            (teleplay)

==================================================

Notice that we're parsing the "Writing credits" section, and not
the (incomplete) "writers" section at the top of the page.

Later, I'll look if this error affects the "mobile" data
access system too.

Thank you very much for your report!
-- 
Davide Alberani <[EMAIL PROTECTED]> [PGP KeyID: 0x465BFD47]
http://erlug.linux.it/~da/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel

Reply via email to