Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crew forgets job after access #15

Closed
kasrak opened this issue May 4, 2012 · 4 comments
Closed

Crew forgets job after access #15

kasrak opened this issue May 4, 2012 · 4 comments
Assignees
Labels

Comments

@kasrak
Copy link

kasrak commented May 4, 2012

>>> import tmdb3
>>> tmdb3.set_key(settings.TMDB_DEVELOPER_KEY)
>>> tmdb3.set_cache('null')
>>> m = tmdb3.Movie(3131)
>>> m
<Movie 'Gangs of New York' (2002)>
>>> m.crew
[<Crew 'Martin Scorsese','Director'>, <Crew 'Jay Cocks','Screenplay'>, ...
>>> c = m.crew[0]
>>> c
<Crew 'Martin Scorsese','Director'>
>>> c.job
u''
>>> c
<Crew 'Martin Scorsese',''>
>>> m.crew
[<Crew 'Martin Scorsese',''>, <Crew 'Jay Cocks','Screenplay'>, ...

Notice that c.job returns an empty string and afterwards, that Crew object's job permanently becomes an empty string.

This is based on 0.6.2.

@ghost ghost assigned wagnerrp May 4, 2012
@wagnerrp
Copy link
Owner

wagnerrp commented May 4, 2012

Seems to work fine here. What version of Python are you running?

@kasrak
Copy link
Author

kasrak commented May 4, 2012

2.7.2

@wagnerrp
Copy link
Owner

wagnerrp commented May 4, 2012

Same here, works fine.

Python 2.7.2 (default, Jan 14 2012, 03:45:25) 
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9
Type "help", "copyright", "credits" or "license" for more information.
>>> import tmdb3
>>> tmdb3.set_key('c27cb71cff5bd76e1a7a009380562c62')
>>> m = tmdb3.Movie(3131)
>>> c = m.crew[0]
>>> c
<Crew 'Martin Scorsese','Director'>
>>> c.job
u'Director'
>>> c
<Crew 'Martin Scorsese','Director'>

@kasrak
Copy link
Author

kasrak commented May 4, 2012

Strange, it just started working with no changes on my end.

@kasrak kasrak closed this as completed May 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants