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

poster/backdrop language error #26

Open
heroclix opened this issue May 25, 2013 · 1 comment
Open

poster/backdrop language error #26

heroclix opened this issue May 25, 2013 · 1 comment
Assignees

Comments

@heroclix
Copy link

dir(movie2.poster)
['_InitArgs', 'class', 'delattr', 'dict', 'doc', 'eq', 'format', 'getattribute', 'gt', 'hash', 'init', 'lt', 'metaclass', 'module', 'new', 'nonzero', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref', '_data', '_lang', '_locale', '_populate', '_session', 'aspectratio', 'filename', 'geturl', 'height', 'language', 'sizes', 'width']

movie2.poster.language
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/tmdb3/util.py", line 143, in get
self.poller.get(inst, owner)()
File "/usr/local/lib/python2.7/dist-packages/tmdb3/util.py", line 61, in call
raise RuntimeError('Poller object called without a source function')
RuntimeError: Poller object called without a source function

@ghost ghost assigned wagnerrp May 25, 2013
@wagnerrp
Copy link
Owner

The primary artwork returned by the Movie/Person/Company queries only return a filename, and there is no mechanism in the API to query more information about an image. Language and size are only available for those images queried through the artwork lists. I can't actually make this work the way you want. The best I could do here is make the error code more descriptive.

kadaliao added a commit to kadaliao/pytmdb3 that referenced this issue Nov 1, 2020
kadaliao added a commit to kadaliao/pytmdb3 that referenced this issue Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants